source: libmono-lliurex-utils/trunk/debian/rules @ 341

Last change on this file since 341 was 341, checked in by mabarracus, 5 years ago

ported pandora code

  • Property svn:executable set to *
File size: 2.2 KB
Line 
1#!/usr/bin/make -f
2# -*- makefile -*-
3# Sample debian/rules that uses debhelper.
4# GNU copyright 1997 to 1999 by Joey Hess.
5
6# Uncomment this to turn on verbose mode.
7#export DH_VERBOSE=1
8
9## for 1.0 ICSharpCode.SharpZipLib.dll
10#libmono-sharpzip0.6-cil
11## for 2.0 ICSharpCode.SharpZipLib.dll
12#libmono-sharpzip2.84-cil
13
14
15export MONO_SHARED_DIR=$(CURDIR)
16
17UPVERSION = $(shell dpkg-parsechangelog | grep ^Vers | cut -d\  -f2 | sed 's,-.*,,' | sed 's/.dfsg.*$$//')
18APIVERSION = 1.0
19CFLAGS = -Wall -g
20
21ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
22        CFLAGS += -O0
23else
24        CFLAGS += -O2
25endif
26ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
27        INSTALL_PROGRAM += -s
28endif
29
30configure: configure-stamp
31configure-stamp: 
32        dh_testdir
33
34        mkdir -p $(MONO_SHARED_DIR)/.wapi
35       
36        touch configure-stamp
37
38build: build-arch build-indep
39
40
41build-arch: 
42
43        $(MAKE) release
44       
45
46build-indep: build-stamp
47
48
49
50
51build-stamp: configure-stamp
52        dh_testdir
53        touch build-stamp
54
55clean:
56        dh_testdir
57        dh_testroot
58        rm -f build-stamp configure-stamp
59
60        $(MAKE) clean
61        -rm -rf build installtmp
62        rm -rf $(MONO_SHARED_DIR)/.wapi
63        rm -rf bin
64        dh_clean
65
66install: build
67        dh_testdir
68        dh_testroot
69        dh_prep
70        dh_installdirs
71
72        #cp -r bin/Release/* $(CURDIR)/debian/libmono-lliurex-utils/usr/lib/cli/libmono-lliurex-utils-0.1/
73        cp bin/Release/* $(CURDIR)/debian/libmono-lliurex-utils/usr/lib/mono/4.0/
74        cp $(CURDIR)/libmono-lliurex.pc $(CURDIR)/debian/libmono-lliurex-utils/usr/lib/pkgconfig/
75        #find $(CURDIR)/debian/user-mutation-tools/usr/lib/user-mutation-tools -type f -exec chmod a-x {} \;
76        #install -c -m711 debian/user-mutation-tools.sh $(CURDIR)/debian/user-mutation-tools/usr/bin/um-login
77       
78        dllxh_install
79
80# Build architecture-independent files here.
81binary-arch: build install
82# We have nothing to do by default.
83
84# Build architecture-dependent files here.
85binary-indep: build install
86        dh_testdir
87        dh_testroot
88        dh_installchangelogs
89        dh_installdocs
90        dh_installexamples
91        dh_install
92        dh_installcligac
93        dh_fixperms
94        dh_clifixperms
95        dh_installman
96        dh_link
97        dh_strip
98        dh_compress
99        dh_installdeb
100        dh_makeclilibs -m $(APIVERSION)
101        dh_clideps -d
102        dh_shlibdeps
103        dh_gencontrol
104        dh_md5sums
105        dh_builddeb
106
107binary: binary-indep binary-arch
108.PHONY: build clean binary-indep binary-arch binary install configure
Note: See TracBrowser for help on using the repository browser.