Contents of /branches/ports/maemo/debian/rules

Parent Directory Parent Directory | Revision Log Revision Log


Revision 120 - (show annotations)
Mon Mar 9 15:11:35 2009 UTC (15 years, 2 months ago) by harbaum
File size: 2164 byte(s)
Use of autoconf
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
13
14
15 CFLAGS = -Wall -g
16
17 ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
18 CFLAGS += -O0
19 else
20 CFLAGS += -O2
21 endif
22
23 config.status: configure
24 echo ">>> config.status"
25 dh_testdir
26 # Add here commands to configure the package.
27 ./configure --prefix=/usr --exec-prefix=/usr
28
29
30 -include version.mk
31
32 build: build-stamp
33
34 build-stamp: config.status
35 echo ">>> build-stamp"
36 dh_testdir
37
38 # Add here commands to compile the package.
39 VERSION_PREFIX=`perl debian/parse-changelog prefix $(TRUNK_VERSION)` \
40 VERSION_SUFFIX=`perl debian/parse-changelog suffix $(TRUNK_VERSION)` \
41 $(MAKE)
42 #docbook-to-man debian/osm2go.sgml > osm2go.1
43
44 touch $@
45
46 clean:
47 echo ">>> Cleaning up"
48 dh_testdir
49 dh_testroot
50 rm -f build-stamp configure-stamp
51
52 # Add here commands to clean up after the build process.
53 -$(MAKE) clean
54
55 dh_clean
56
57 install: build
58 echo ">>> install"
59 dh_testdir
60 dh_testroot
61 dh_clean -k
62 dh_installdirs
63
64 # Add here commands to install the package into debian/osm2go.
65 $(MAKE) DESTDIR=$(CURDIR)/debian/osm2go install
66
67
68 # Build architecture-independent files here.
69 binary-indep: build install
70 # We have nothing to do by default.
71
72 # Build architecture-dependent files here.
73 binary-arch: build install
74 dh_testdir
75 dh_testroot
76 dh_installchangelogs
77 dh_installdocs
78 dh_installexamples
79 # dh_install
80 # dh_installmenu
81 # dh_installdebconf
82 # dh_installlogrotate
83 # dh_installemacsen
84 # dh_installpam
85 # dh_installmime
86 # dh_python
87 # dh_installinit
88 # dh_installcron
89 # dh_installinfo
90 dh_installman
91 dh_link
92 dh_strip
93 dh_compress
94 dh_fixperms
95 # dh_perl
96 # dh_makeshlibs
97 dh_installdeb
98 dh_shlibdeps
99 dh_gencontrol
100 dh_md5sums
101 dh_builddeb
102
103 binary: binary-indep binary-arch
104 .PHONY: build clean binary-indep binary-arch binary install configure