]> err.no Git - mapper/blob - debian/rules
Map widget:
[mapper] / debian / rules
1 #!/usr/bin/make -f
2 # -*- makefile -*-
3 # Sample debian/rules that uses debhelper.
4 # GNU copyright 1997 to 1999 by Joey Hess.
5
6 # Uncomment this to turn on verbose mode.
7 #export DH_VERBOSE=1
8
9 # These are used for cross-compiling and for saving the configure script
10 # from having to guess our platform (since we know it already)
11 DEB_HOST_GNU_TYPE   ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
12 DEB_BUILD_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
13
14 CFLAGS+ = -Wall -g
15
16 ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
17         CFLAGS += -O0
18 else
19         CFLAGS += -O2 -pipe 
20 # -mcpu=arm926ej-s
21 endif
22
23 ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
24         INSTALL_PROGRAM += -s
25 endif
26
27 ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
28         CFLAGS += -g -O0 -DDEBUG
29 endif
30
31 configure: configure-stamp
32 configure-stamp:
33         dh_testdir
34         #./autogen.sh
35         # Add here commands to configure the package.
36         CFLAGS="$(CFLAGS)" ./configure --prefix=/usr \
37                 --disable-static \
38                 --disable-debug \
39                 --enable-hildon \
40                 --enable-770 \
41                 --enable-hal \
42                 --enable-itbtdbus \
43                 --enable-gpsd \
44                 --enable-gst \
45                 --disable-schemas-install \
46                 --sysconfdir=/etc
47         touch configure-stamp
48
49 build: build-stamp
50
51 build-stamp: configure-stamp 
52         dh_testdir
53
54         # Add here commands to compile the package.
55         $(MAKE)
56
57         touch build-stamp
58
59 clean:
60         dh_testdir
61         dh_testroot
62         rm -f build-stamp configure-stamp
63
64         # Add here commands to clean up after the build process.
65         -$(MAKE) clean
66
67         dh_clean 
68
69 install: build
70         dh_testdir
71         dh_testroot
72         dh_clean -k 
73         dh_installdirs
74
75         # Add here commands to install the package
76         $(MAKE) install DESTDIR=$(CURDIR)/debian/mapper
77
78 # Build architecture-independent files here.
79 binary-indep: build install
80 # We have nothing to do by default.
81
82 # Build architecture-dependent files here.
83 binary-arch: build install
84         dh_testdir
85         dh_testroot
86 #       dh_installchangelogs 
87 #       dh_installdocs
88 #       dh_installexamples
89 #       dh_install
90 #       dh_installmenu
91 #       dh_installdebconf       
92 #       dh_installlogrotate
93 #       dh_installemacsen
94 #       dh_installpam
95 #       dh_installmime
96 #       dh_installinit
97 #       dh_installcron
98 #       dh_installinfo
99 #       dh_installman
100         dh_link
101         dh_strip
102         dh_compress
103         dh_fixperms
104 #       dh_perl
105 #       dh_python
106         dh_makeshlibs
107         dh_installdeb
108         dh_shlibdeps
109         dh_gencontrol
110         dh_md5sums
111         dh_builddeb
112
113 binary: binary-indep binary-arch
114 .PHONY: build clean binary-indep binary-arch binary install configure