1 #!/usr/bin/make -f |
|
2 # -*- makefile -*- |
|
3 |
|
4 # Uncomment this to turn on verbose mode. |
|
5 #export DH_VERBOSE=1 |
|
6 |
|
7 CFLAGS = -Wall -g |
|
8 |
|
9 ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) |
|
10 CFLAGS += -O0 |
|
11 else |
|
12 CFLAGS += -O2 |
|
13 endif |
|
14 |
|
15 configure: configure-stamp |
|
16 configure-stamp: |
|
17 dh_testdir |
|
18 touch configure-stamp |
|
19 |
|
20 |
|
21 build: build-stamp |
|
22 |
|
23 build-stamp: configure-stamp |
|
24 dh_testdir |
|
25 touch $@ |
|
26 |
|
27 clean: |
|
28 dh_testdir |
|
29 dh_testroot |
|
30 rm -f build-stamp configure-stamp |
|
31 dh_clean |
|
32 |
|
33 install: build |
|
34 dh_testdir |
|
35 dh_testroot |
|
36 dh_clean -k |
|
37 dh_installdirs |
|
38 |
|
39 # Copy source files |
|
40 mkdir -p $(CURDIR)/debian/beremiz/usr/share/beremiz |
|
41 cp -a images $(CURDIR)/debian/beremiz/usr/share/beremiz |
|
42 cp -a plugins $(CURDIR)/debian/beremiz/usr/share/beremiz |
|
43 cp -a runtime $(CURDIR)/debian/beremiz/usr/share/beremiz |
|
44 cp -a tests $(CURDIR)/debian/beremiz/usr/share/beremiz |
|
45 cp -a connectors $(CURDIR)/debian/beremiz/usr/share/beremiz |
|
46 cp -a targets $(CURDIR)/debian/beremiz/usr/share/beremiz |
|
47 cp -a doc $(CURDIR)/debian/beremiz/usr/share/beremiz |
|
48 cp -a locale $(CURDIR)/debian/beremiz/usr/share/beremiz |
|
49 cp *.js $(CURDIR)/debian/beremiz/usr/share/beremiz |
|
50 cp *.py $(CURDIR)/debian/beremiz/usr/share/beremiz |
|
51 |
|
52 # Copy desktop directory file |
|
53 mkdir -p $(CURDIR)/debian/beremiz/usr/share/desktop-directories |
|
54 cp debian/Beremiz.directory $(CURDIR)/debian/beremiz/usr/share/desktop-directories |
|
55 cp debian/Beremiz_demos.directory $(CURDIR)/debian/beremiz/usr/share/desktop-directories |
|
56 cp debian/Beremiz_docs.directory $(CURDIR)/debian/beremiz/usr/share/desktop-directories |
|
57 |
|
58 # Copy desktop menu file |
|
59 mkdir -p $(CURDIR)/debian/beremiz/etc/xdg/menus/applications-merged |
|
60 cp debian/beremiz.menu $(CURDIR)/debian/beremiz/etc/xdg/menus/applications-merged |
|
61 |
|
62 # Copy desktop entry files |
|
63 mkdir -p $(CURDIR)/debian/beremiz/usr/share/applications |
|
64 cp debian/beremiz.desktop $(CURDIR)/debian/beremiz/usr/share/applications/ |
|
65 cp debian/beremiz_svgui.desktop $(CURDIR)/debian/beremiz/usr/share/applications/ |
|
66 cp debian/beremiz_wxglade.desktop $(CURDIR)/debian/beremiz/usr/share/applications/ |
|
67 cp debian/beremiz_doc.desktop $(CURDIR)/debian/beremiz/usr/share/applications/ |
|
68 |
|
69 rm -rf `find .|grep CVS` |
|
70 rm -rf `find .|grep .cvsignore` |
|
71 chmod -R a+r $(CURDIR)/debian/beremiz |
|
72 |
|
73 # Build architecture-independent files here. |
|
74 binary-indep: build install |
|
75 |
|
76 # Build architecture-dependent files here. |
|
77 binary-arch: build install |
|
78 dh_testdir |
|
79 dh_testroot |
|
80 # dh_installchangelogs |
|
81 # dh_installdocs |
|
82 dh_installexamples |
|
83 # dh_install |
|
84 # dh_installmenu |
|
85 # dh_installdebconf |
|
86 # dh_installlogrotate |
|
87 # dh_installemacsen |
|
88 # dh_installpam |
|
89 # dh_installmime |
|
90 # dh_python |
|
91 # dh_installinit |
|
92 # dh_installcron |
|
93 # dh_installinfo |
|
94 dh_installman |
|
95 dh_link |
|
96 dh_strip |
|
97 dh_compress |
|
98 dh_fixperms |
|
99 # dh_perl |
|
100 # dh_makeshlibs |
|
101 dh_installdeb |
|
102 # dh_shlibdeps |
|
103 dh_gencontrol |
|
104 dh_md5sums |
|
105 dh_builddeb |
|
106 |
|
107 binary: binary-indep binary-arch |
|
108 .PHONY: build clean binary-indep binary-arch binary install configure |
|