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 | |
---|
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 | update-po: |
---|
31 | cp -f miniscreentranslation/messages.po lliurex-po/lliurex-miniscreen/lliurex-miniscreen.pot |
---|
32 | cp -f miniscreentranslation/es_.po lliurex-po/lliurex-miniscreen/es.po |
---|
33 | cp -f miniscreentranslation/qcv.po lliurex-po/lliurex-miniscreen/qcv.po |
---|
34 | cp -f miniscreentranslation/ca.po lliurex-po/lliurex-miniscreen/ca.po |
---|
35 | |
---|
36 | |
---|
37 | configure: configure-stamp |
---|
38 | configure-stamp: update-po |
---|
39 | dh_testdir |
---|
40 | |
---|
41 | mkdir -p $(MONO_SHARED_DIR)/.wapi |
---|
42 | |
---|
43 | touch configure-stamp |
---|
44 | |
---|
45 | build: build-arch build-indep |
---|
46 | build-arch: build-stamp |
---|
47 | build-indep: build-stamp |
---|
48 | |
---|
49 | build-stamp: configure-stamp |
---|
50 | dh_testdir |
---|
51 | |
---|
52 | |
---|
53 | $(MAKE) release |
---|
54 | |
---|
55 | touch build-stamp |
---|
56 | |
---|
57 | clean: |
---|
58 | dh_testdir |
---|
59 | dh_testroot |
---|
60 | rm -f build-stamp configure-stamp |
---|
61 | |
---|
62 | $(MAKE) clean |
---|
63 | -rm -rf build installtmp |
---|
64 | rm -rf $(MONO_SHARED_DIR)/.wapi |
---|
65 | dh_clean |
---|
66 | |
---|
67 | install: build |
---|
68 | dh_testdir |
---|
69 | dh_testroot |
---|
70 | dh_prep |
---|
71 | dh_installdirs |
---|
72 | |
---|
73 | cp -r miniscreen/bin/Release/* $(CURDIR)/debian/lliurex-miniscreen/usr/lib/lliurex-miniscreen |
---|
74 | #find $(CURDIR)/debian/lliurex-miniscreen/usr/lib/lliurex-miniscreen/miniscreen.exe -type f -exec chmod a-x {} \; |
---|
75 | install -c -m755 debian/lliurex-miniscreen.sh $(CURDIR)/debian/lliurex-miniscreen/usr/bin/lliurex-miniscreen |
---|
76 | |
---|
77 | # Build architecture-independent files here. |
---|
78 | binary-arch: build install |
---|
79 | # We have nothing to do by default. |
---|
80 | |
---|
81 | # Build architecture-dependent files here. |
---|
82 | binary-indep: build install |
---|
83 | dh_testdir |
---|
84 | dh_testroot |
---|
85 | dh_installchangelogs |
---|
86 | dh_installdocs |
---|
87 | dh_installexamples |
---|
88 | dh_install |
---|
89 | dllxh_install |
---|
90 | dh_installman |
---|
91 | dh_link |
---|
92 | dh_strip |
---|
93 | dh_compress |
---|
94 | dh_fixperms |
---|
95 | dh_llxsrcinstall |
---|
96 | dh_installdeb |
---|
97 | dh_shlibdeps |
---|
98 | dh_gencontrol |
---|
99 | dh_md5sums |
---|
100 | dh_builddeb |
---|
101 | |
---|
102 | binary: binary-indep binary-arch |
---|
103 | .PHONY: build clean binary-indep binary-arch binary install configure |
---|