Wed, 05 Aug 2009 17:32:05 +0100
updated README
philpem@5 | 1 | #!/usr/bin/make -f |
philpem@5 | 2 | # -*- makefile -*- |
philpem@5 | 3 | # Sample debian/rules that uses debhelper. |
philpem@5 | 4 | # GNU copyright 1997 to 1999 by Joey Hess. |
philpem@5 | 5 | # |
philpem@5 | 6 | # Modified to make a template file for a multi-binary package with separated |
philpem@5 | 7 | # build-arch and build-indep targets by Bill Allombert 2001 |
philpem@5 | 8 | # |
philpem@5 | 9 | # Modified in order to update the package by François-Xavier Dupé 2007 |
philpem@5 | 10 | |
philpem@5 | 11 | # Uncomment this to turn on verbose mode. |
philpem@5 | 12 | #export DH_VERBOSE=1 |
philpem@5 | 13 | |
philpem@5 | 14 | # This has to be exported to make some magic below work. |
philpem@5 | 15 | export DH_OPTIONS |
philpem@5 | 16 | |
philpem@5 | 17 | CFLAGS = -Wall -g |
philpem@5 | 18 | |
philpem@5 | 19 | ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) |
philpem@5 | 20 | CFLAGS += -O0 |
philpem@5 | 21 | else |
philpem@5 | 22 | CFLAGS += -O3 |
philpem@5 | 23 | endif |
philpem@5 | 24 | ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS))) |
philpem@5 | 25 | INSTALL_PROGRAM += -s |
philpem@5 | 26 | endif |
philpem@5 | 27 | |
philpem@5 | 28 | build: build-indep-stamp |
philpem@5 | 29 | build-indep-stamp: |
philpem@5 | 30 | #cd examples && $(MAKE) "LDFLAGS=-lm -lpthread" |
philpem@5 | 31 | #cd examples && $(MAKE) clean |
philpem@5 | 32 | #$(MAKE) doc |
philpem@5 | 33 | touch build-indep-stamp |
philpem@5 | 34 | |
philpem@5 | 35 | clean: |
philpem@5 | 36 | dh_testdir |
philpem@5 | 37 | dh_testroot |
philpem@5 | 38 | rm -f build-arch-stamp build-indep-stamp |
philpem@5 | 39 | dh_clean |
philpem@5 | 40 | |
philpem@5 | 41 | install: |
philpem@5 | 42 | dh_testdir |
philpem@5 | 43 | dh_testroot |
philpem@5 | 44 | dh_clean -k |
philpem@5 | 45 | dh_installdirs |
philpem@5 | 46 | dh_install |
philpem@5 | 47 | |
philpem@5 | 48 | binary-indep: build install |
philpem@5 | 49 | dh_testdir |
philpem@5 | 50 | dh_testroot |
philpem@5 | 51 | dh_installchangelogs |
philpem@5 | 52 | dh_installdocs |
philpem@5 | 53 | dh_compress |
philpem@5 | 54 | # dh_installmenu |
philpem@5 | 55 | # dh_installdebconf |
philpem@5 | 56 | # dh_installlogrotate |
philpem@5 | 57 | # dh_installemacsen |
philpem@5 | 58 | # dh_installpam |
philpem@5 | 59 | # dh_installmime |
philpem@5 | 60 | # dh_installinit |
philpem@5 | 61 | # dh_installcron |
philpem@5 | 62 | # dh_installinfo |
philpem@5 | 63 | # dh_installman |
philpem@5 | 64 | dh_link |
philpem@5 | 65 | dh_strip |
philpem@5 | 66 | dh_fixperms |
philpem@5 | 67 | # dh_perl |
philpem@5 | 68 | # dh_python |
philpem@5 | 69 | dh_makeshlibs |
philpem@5 | 70 | dh_installdeb |
philpem@5 | 71 | dh_shlibdeps |
philpem@5 | 72 | dh_gencontrol |
philpem@5 | 73 | dh_md5sums |
philpem@5 | 74 | dh_builddeb |
philpem@5 | 75 | |
philpem@5 | 76 | # Build architecture dependant packages using the common target. |
philpem@5 | 77 | binary-arch: build install |
philpem@5 | 78 | |
philpem@5 | 79 | binary: binary-indep binary-arch |
philpem@5 | 80 | .PHONY: build clean binary-indep binary-arch binary install install-indep install-arch |