Thu, 24 Sep 2009 17:18:28 +0100
Added support for separator ticks between labels
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 # Modified to make a template file for a multi-binary package with separated
7 # build-arch and build-indep targets by Bill Allombert 2001
8 #
9 # Modified in order to update the package by François-Xavier Dupé 2007
11 # Uncomment this to turn on verbose mode.
12 #export DH_VERBOSE=1
14 # This has to be exported to make some magic below work.
15 export DH_OPTIONS
17 CFLAGS = -Wall -g
19 ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
20 CFLAGS += -O0
21 else
22 CFLAGS += -O3
23 endif
24 ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
25 INSTALL_PROGRAM += -s
26 endif
28 build: build-indep-stamp
29 build-indep-stamp:
30 #cd examples && $(MAKE) "LDFLAGS=-lm -lpthread"
31 #cd examples && $(MAKE) clean
32 #$(MAKE) doc
33 touch build-indep-stamp
35 clean:
36 dh_testdir
37 dh_testroot
38 rm -f build-arch-stamp build-indep-stamp
39 dh_clean
41 install:
42 dh_testdir
43 dh_testroot
44 dh_clean -k
45 dh_installdirs
46 dh_install
48 binary-indep: build install
49 dh_testdir
50 dh_testroot
51 dh_installchangelogs
52 dh_installdocs
53 dh_compress
54 # dh_installmenu
55 # dh_installdebconf
56 # dh_installlogrotate
57 # dh_installemacsen
58 # dh_installpam
59 # dh_installmime
60 # dh_installinit
61 # dh_installcron
62 # dh_installinfo
63 # dh_installman
64 dh_link
65 dh_strip
66 dh_fixperms
67 # dh_perl
68 # dh_python
69 dh_makeshlibs
70 dh_installdeb
71 dh_shlibdeps
72 dh_gencontrol
73 dh_md5sums
74 dh_builddeb
76 # Build architecture dependant packages using the common target.
77 binary-arch: build install
79 binary: binary-indep binary-arch
80 .PHONY: build clean binary-indep binary-arch binary install install-indep install-arch