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