9949f90334c4abe94cbd133f6c1802c38a85fbcd
[callnotify] / debian / rules
1 #!/usr/bin/make -f
2 # -*- makefile -*-
3 # Sample debian/rules that uses debhelper.
4 # This file was originally written by Joey Hess and Craig Small.
5 # As a special exception, when this file is copied by dh-make into a
6 # dh-make output file, you may use that output file without restriction.
7 # This special exception was added by Craig Small in version 0.37 of dh-make.
8
9 # Uncomment this to turn on verbose mode.
10 #export DH_VERBOSE=1
11
12 CFLAGS = -Wall -g
13
14 ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
15         CFLAGS += -O0
16 else
17         CFLAGS += -O2
18 endif
19
20 configure: configure-stamp
21 configure-stamp:
22         dh_testdir
23         # Add here commands to configure the package.
24
25         touch configure-stamp
26
27 build: build-stamp
28
29 build-stamp: configure-stamp
30         dh_testdir
31         touch build-stamp
32
33 clean:
34         dh_testdir
35         dh_testroot
36         rm -f build-stamp configure-stamp
37         dh_clean
38
39 install: build
40         dh_testdir
41         dh_testroot
42         dh_clean -k
43         dh_installdirs
44
45         # ======================================================
46         #$(MAKE) DESTDIR="$(CURDIR)/debian/callnotify" install
47         mkdir -p "$(CURDIR)/debian/callnotify"
48
49 #       mkdir -p "$(CURDIR)/debian/callnotify/usr/lib/hildon-control-panel/"
50         cp -a "src/usr/lib/hildon-control-panel/libcallnotify.ao" "$(CURDIR)/debian/callnotify/usr/lib/hildon-control-panel/libcallnotify.ao"
51         mkdir -p "$(CURDIR)/debian/callnotify/usr/lib/hildon-control-panel/"
52         cp -a "src/usr/lib/hildon-control-panel/libcallnotify.so" "$(CURDIR)/debian/callnotify/usr/lib/hildon-control-panel/libcallnotify.so"
53         mkdir -p "$(CURDIR)/debian/callnotify/usr/share/CallNotify/"
54         cp -a "src/usr/share/CallNotify/1.png" "$(CURDIR)/debian/callnotify/usr/share/CallNotify/1.png"
55         mkdir -p "$(CURDIR)/debian/callnotify/usr/share/CallNotify/"
56         cp -a "src/usr/share/CallNotify/2.png" "$(CURDIR)/debian/callnotify/usr/share/CallNotify/2.png"
57         mkdir -p "$(CURDIR)/debian/callnotify/usr/share/CallNotify/"
58         cp -a "src/usr/share/CallNotify/3.png" "$(CURDIR)/debian/callnotify/usr/share/CallNotify/3.png"
59         mkdir -p "$(CURDIR)/debian/callnotify/usr/share/CallNotify/"
60         cp -a "src/usr/share/CallNotify/4.png" "$(CURDIR)/debian/callnotify/usr/share/CallNotify/4.png"
61         mkdir -p "$(CURDIR)/debian/callnotify/usr/share/CallNotify/"
62         cp -a "src/usr/share/CallNotify/5.png" "$(CURDIR)/debian/callnotify/usr/share/CallNotify/5.png"
63         mkdir -p "$(CURDIR)/debian/callnotify/usr/share/CallNotify/"
64         cp -a "src/usr/share/CallNotify/call.png" "$(CURDIR)/debian/callnotify/usr/share/CallNotify/call.png"
65         mkdir -p "$(CURDIR)/debian/callnotify/usr/share/CallNotify/"
66         cp -a "src/usr/share/CallNotify/missed.wav" "$(CURDIR)/debian/callnotify/usr/share/CallNotify/missed.wav"
67         mkdir -p "$(CURDIR)/debian/callnotify/usr/share/CallNotify/"
68         cp -a "src/usr/share/CallNotify/more.png" "$(CURDIR)/debian/callnotify/usr/share/CallNotify/more.png"
69         mkdir -p "$(CURDIR)/debian/callnotify/usr/share/CallNotify/"
70         cp -a "src/usr/share/CallNotify/sms.png" "$(CURDIR)/debian/callnotify/usr/share/CallNotify/sms.png"
71         mkdir -p "$(CURDIR)/debian/callnotify/usr/lib/hildon-desktop/"
72         cp -a "src/usr/lib/hildon-desktop/CallNotify.py" "$(CURDIR)/debian/callnotify/usr/lib/hildon-desktop/CallNotify.py"
73         mkdir -p "$(CURDIR)/debian/callnotify/usr/share/pixmaps/"
74         cp -a "src/usr/share/pixmaps/CallNotify.png" "$(CURDIR)/debian/callnotify/usr/share/pixmaps/CallNotify.png"
75         mkdir -p "$(CURDIR)/debian/callnotify/usr/share/applications/hildon-control-panel/"
76         cp -a "src/usr/share/applications/hildon-control-panel/callnotify.desktop" "$(CURDIR)/debian/callnotify/usr/share/applications/hildon-control-panel/callnotify.desktop"
77         mkdir -p "$(CURDIR)/debian/callnotify/usr/share/applications/hildon-status-menu/"
78         cp -a "src/usr/share/applications/hildon-status-menu/CallNotify.desktop" "$(CURDIR)/debian/callnotify/usr/share/applications/hildon-status-menu/CallNotify.desktop"
79
80         # ======================================================
81
82 # Build architecture-independent files here.
83 binary-indep: build install
84 # We have nothing to do by default.
85
86 # Build architecture-dependent files here.
87 binary-arch: build install
88         dh_testdir
89         dh_testroot
90         dh_installchangelogs debian/changelog
91         dh_installdocs
92         dh_installexamples
93 #       dh_install
94 #       dh_installmenu
95 #       dh_installdebconf
96 #       dh_installlogrotate
97 #       dh_installemacsen
98 #       dh_installpam
99 #       dh_installmime
100 #       dh_python
101 #       dh_installinit
102 #       dh_installcron
103 #       dh_installinfo
104         dh_installman
105         dh_link
106         dh_strip
107         dh_compress
108         dh_fixperms
109 #       dh_perl
110 #       dh_makeshlibs
111         dh_installdeb
112         dh_shlibdeps
113         dh_gencontrol
114         dh_md5sums
115         dh_builddeb
116
117 binary: binary-indep binary-arch
118 .PHONY: build clean binary-indep binary-arch binary install configure