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 | |
---|
15 | export MONO_SHARED_DIR=$(CURDIR) |
---|
16 | |
---|
17 | UPVERSION = $(shell dpkg-parsechangelog | grep ^Vers | cut -d\ -f2 | sed 's,-.*,,' | sed 's/.dfsg.*$$//') |
---|
18 | APIVERSION = 1.0 |
---|
19 | CFLAGS = -Wall -g |
---|
20 | |
---|
21 | ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) |
---|
22 | CFLAGS += -O0 |
---|
23 | else |
---|
24 | CFLAGS += -O2 |
---|
25 | endif |
---|
26 | ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS))) |
---|
27 | INSTALL_PROGRAM += -s |
---|
28 | endif |
---|
29 | |
---|
30 | configure: configure-stamp |
---|
31 | configure-stamp: |
---|
32 | dh_testdir |
---|
33 | |
---|
34 | mkdir -p $(MONO_SHARED_DIR)/.wapi |
---|
35 | |
---|
36 | touch configure-stamp |
---|
37 | |
---|
38 | build: build-stamp |
---|
39 | |
---|
40 | build-stamp: configure-stamp |
---|
41 | dh_testdir |
---|
42 | |
---|
43 | touch build-stamp |
---|
44 | |
---|
45 | clean: |
---|
46 | dh_testdir |
---|
47 | dh_testroot |
---|
48 | rm -f build-stamp configure-stamp |
---|
49 | |
---|
50 | $(MAKE) clean |
---|
51 | -rm -rf build installtmp |
---|
52 | rm -rf $(MONO_SHARED_DIR)/.wapi |
---|
53 | dh_clean |
---|
54 | |
---|
55 | install: build |
---|
56 | dh_testdir |
---|
57 | dh_testroot |
---|
58 | dh_prep |
---|
59 | dh_installdirs |
---|
60 | #find $(CURDIR)/debian/user-mutation-tools/usr/lib/user-mutation-tools -type f -exec chmod a-x {} \; |
---|
61 | #install -c -m711 debian/user-mutation-tools.sh $(CURDIR)/debian/user-mutation-tools/usr/bin/um-login |
---|
62 | |
---|
63 | |
---|
64 | # Build architecture-independent files here. |
---|
65 | binary-arch: build install |
---|
66 | $(MAKE) release |
---|
67 | cp bin/Release/* $(CURDIR)/debian/xmlrpcnet/usr/lib/mono/2.0/ |
---|
68 | cp $(CURDIR)/xmlrpcnet.pc $(CURDIR)/debian/xmlrpcnet/usr/lib/pkgconfig/ |
---|
69 | |
---|
70 | |
---|
71 | |
---|
72 | # Build architecture-dependent files here. |
---|
73 | binary-indep: build binary-arch install |
---|
74 | dh_testdir |
---|
75 | dh_testroot |
---|
76 | dh_installchangelogs |
---|
77 | dh_installdocs |
---|
78 | dh_installexamples |
---|
79 | dh_install |
---|
80 | dh_fixperms |
---|
81 | dh_installman |
---|
82 | dh_link |
---|
83 | dh_installcligac |
---|
84 | dh_clifixperms |
---|
85 | dh_strip |
---|
86 | dh_compress |
---|
87 | dh_installdeb |
---|
88 | dh_makeclilibs -m $(APIVERSION) |
---|
89 | dh_clideps -d |
---|
90 | dh_shlibdeps |
---|
91 | dh_gencontrol |
---|
92 | dh_md5sums |
---|
93 | dh_builddeb |
---|
94 | |
---|
95 | binary: binary-indep binary-arch |
---|
96 | .PHONY: build clean binary-indep binary-arch binary install configure |
---|