init
[cpufrequi] / debian / rules
1 #!/usr/bin/make -f
2
3 configure: configure-stamp
4 configure-stamp:
5         dh_testdir
6         qmake INSTALL_PREFIX=/usr
7         touch configure-stamp
8
9 build: build-stamp
10
11 build-stamp: configure-stamp 
12         dh_testdir
13         $(MAKE)
14         touch $@
15
16 clean:
17         dh_testdir
18         dh_testroot
19         rm -f build-stamp configure-stamp
20         if test -f $(CURDIR)/Makefile; then \
21                 $(MAKE) distclean; \
22         fi
23         dh_clean
24
25 install:
26         dh_testdir
27         dh_testroot
28         dh_clean -k
29         dh_installdirs
30         cd $(CURDIR) && $(MAKE) INSTALL_ROOT=$(CURDIR)/debian/cpufrequi install
31         mkdir -p $(CURDIR)/debian/cpufrequi/usr/share/icons/hicolor/scalable/hildon
32         cp $(CURDIR)/cpufrequi.png $(CURDIR)/debian/cpufrequi/usr/share/pixmaps/cpufrequi.png
33         cp $(CURDIR)/cpufrequi.png $(CURDIR)/debian/cpufrequi/usr/share/icons/hicolor/scalable/hildon/cpufrequi.png
34         mkdir -p $(CURDIR)/debian/cpufrequi/usr/share/icons/hicolor/128x128/hildon
35         cp $(CURDIR)/cpufrequi.png $(CURDIR)/debian/cpufrequi/usr/share/icons/hicolor/128x128/hildon/cpufrequi.png
36         mkdir -p $(CURDIR)/debian/cpufrequi/usr/share/icons/hicolor/48x48/hildon
37         cp $(CURDIR)/debian/cpufrequi.png $(CURDIR)/debian/cpufrequi/usr/share/icons/hicolor/48x48/hildon/cpufrequi.png
38         mkdir -p $(CURDIR)/debian/cpufrequi/usr/share/applications/hildon/
39         cp $(CURDIR)/cpufrequi.desktop $(CURDIR)/debian/cpufrequi/usr/share/applications/hildon/cpufrequi.desktop
40         mkdir -p $(CURDIR)/debian/cpufrequi/usr/share/doc/cpufrequi
41         cp $(CURDIR)/debian/copyright $(CURDIR)/debian/cpufrequi/usr/share/doc/cpufrequi/copyright
42         mkdir -p $(CURDIR)/debian/cpufrequi/etc/event.d
43         cp $(CURDIR)/debian/cpufrequist $(CURDIR)/debian/cpufrequi/etc/event.d/cpufrequist
44         chmod a+x $(CURDIR)/debian/cpufrequi/etc/event.d/cpufrequist
45
46 binary-indep: build install
47
48 binary-arch: install
49         dh_maemo_package_icons
50         dh_testdir
51         dh_testroot
52         dh_strip
53         dh_compress
54         dh_fixperms
55         dh_installdeb
56         dh_shlibdeps
57         dh_gencontrol
58         dh_md5sums
59         if test -x /usr/bin/maemo-optify; then \
60                 maemo-optify; \
61         fi
62         dh_builddeb
63         dh_maemo_package_icons -r
64
65 binary: binary-indep binary-arch
66 .PHONY: build clean binary-indep binary-arch binary install configure