Fremantle: clear hildon-control-panel's cached image on remove
[browser-switch] / 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 ifeq ($(DEB_HOST_ARCH),armel)
13         #EXTRA_CFLAGS += -mcpu=arm1136jf-s
14         # Use Thumb for smaller binaries unless otherwise requested
15         ifeq (,$(filter nothumb,$(DEB_BUILD_OPTIONS)))
16                 EXTRA_CFLAGS += -mthumb
17         endif
18 endif
19
20 configure: configure-stamp
21 configure-stamp:
22         touch configure-stamp
23
24
25 build: build-stamp
26
27 build-stamp: configure-stamp 
28         dh_testdir
29
30         make EXTRA_CFLAGS="$(EXTRA_CFLAGS)" fremantle
31         make -C config-ui EXTRA_CFLAGS="$(EXTRA_CFLAGS)" fremantle-plugin
32
33         touch $@
34
35 clean:
36         dh_testdir
37         dh_testroot
38         rm -f build-stamp configure-stamp
39
40         make clean
41         make -C config-ui clean
42
43         dh_clean 
44
45 install: build
46         dh_testdir
47         dh_testroot
48         dh_clean -k 
49         dh_installdirs
50
51         # Add here commands to install the package into
52         # debian/browser-switchboard.
53         make DESTDIR=debian/browser-switchboard install
54         make -C config-ui DESTDIR=../debian/browser-switchboard install
55         install -c -m 0644 debian/browser-switchboard-cp.desktop debian/browser-switchboard/usr/share/applications/hildon-control-panel
56         install -c -m 0644 debian/microb.desktop debian/browser-switchboard/usr/share/applications/hildon
57
58
59 binary-indep: build install
60 # arch: any package, nothing to do here
61
62 binary-arch: build install
63         dh_testdir
64         dh_testroot
65         dh_installchangelogs 
66         dh_installdocs
67         dh_installexamples
68 #       dh_install
69 #       dh_installmenu
70 #       dh_installdebconf       
71 #       dh_installlogrotate
72 #       dh_installemacsen
73 #       dh_installpam
74 #       dh_installmime
75 #       dh_python
76 #       dh_installinit
77 #       dh_installcron
78 #       dh_installinfo
79 #       dh_installman
80 #       dh_link
81         dh_strip
82         dh_compress
83         dh_fixperms
84 #       dh_perl
85 #       dh_makeshlibs
86         dh_installdeb
87         dh_shlibdeps
88         dh_gencontrol
89         dh_md5sums
90         dh_builddeb
91
92 binary: binary-indep binary-arch
93 .PHONY: build clean binary-indep binary-arch binary install configure