bday
annotate debian/rules @ 12:dc220ec8248d
minor changes in Makefile
author | meillo@marmaro.de |
---|---|
date | Thu, 13 Nov 2008 13:30:00 +0100 |
parents | |
children | a1ac59b7916b |
rev | line source |
---|---|
meillo@11 | 1 #!/usr/bin/make -f |
meillo@11 | 2 # Sample debian/rules that uses debhelper. |
meillo@11 | 3 # GNU copyright 1997 to 1999 by Joey Hess. |
meillo@11 | 4 |
meillo@11 | 5 # Uncomment this to turn on verbose mode. |
meillo@11 | 6 #export DH_VERBOSE=1 |
meillo@11 | 7 |
meillo@11 | 8 # This is the debhelper compatibility version to use. |
meillo@11 | 9 #export DH_COMPAT=4 |
meillo@11 | 10 |
meillo@11 | 11 CFLAGS = -g |
meillo@11 | 12 ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) |
meillo@11 | 13 CFLAGS += -O0 |
meillo@11 | 14 else |
meillo@11 | 15 CFLAGS += -O2 |
meillo@11 | 16 endif |
meillo@11 | 17 |
meillo@11 | 18 build: build-stamp |
meillo@11 | 19 build-stamp: |
meillo@11 | 20 dh_testdir |
meillo@11 | 21 |
meillo@11 | 22 # Add here commands to compile the package. |
meillo@11 | 23 $(MAKE) build |
meillo@11 | 24 |
meillo@11 | 25 touch build-stamp |
meillo@11 | 26 |
meillo@11 | 27 clean: |
meillo@11 | 28 dh_testdir |
meillo@11 | 29 dh_testroot |
meillo@11 | 30 rm -f build-stamp |
meillo@11 | 31 |
meillo@11 | 32 # Add here commands to clean up after the build process. |
meillo@11 | 33 -$(MAKE) clean |
meillo@11 | 34 |
meillo@11 | 35 dh_clean |
meillo@11 | 36 |
meillo@11 | 37 install: build |
meillo@11 | 38 dh_testdir |
meillo@11 | 39 dh_testroot |
meillo@11 | 40 dh_clean -k |
meillo@11 | 41 dh_installdirs |
meillo@11 | 42 |
meillo@11 | 43 # Add here commands to install the package into debian/gentoo. |
meillo@11 | 44 $(MAKE) install DESTDIR=$(CURDIR)/debian/bday |
meillo@11 | 45 |
meillo@11 | 46 # Build architecture-independent files here. |
meillo@11 | 47 binary-indep: build install |
meillo@11 | 48 # We have nothing to do by default. |
meillo@11 | 49 |
meillo@11 | 50 # Build architecture-dependent files here. |
meillo@11 | 51 binary-arch: build install |
meillo@11 | 52 dh_testdir |
meillo@11 | 53 dh_testroot |
meillo@11 | 54 # dh_installdebconf |
meillo@11 | 55 dh_installdocs |
meillo@11 | 56 dh_installexamples |
meillo@11 | 57 # dh_installmenu |
meillo@11 | 58 # dh_installlogrotate |
meillo@11 | 59 # dh_installemacsen |
meillo@11 | 60 # dh_installpam |
meillo@11 | 61 # dh_installmime |
meillo@11 | 62 # dh_installinit |
meillo@11 | 63 # dh_installcron |
meillo@11 | 64 dh_installman |
meillo@11 | 65 # dh_installinfo |
meillo@11 | 66 # dh_undocumented |
meillo@11 | 67 dh_installchangelogs ChangeLog |
meillo@11 | 68 dh_link |
meillo@11 | 69 dh_strip |
meillo@11 | 70 dh_compress |
meillo@11 | 71 dh_fixperms |
meillo@11 | 72 # dh_makeshlibs |
meillo@11 | 73 dh_installdeb |
meillo@11 | 74 # dh_perl |
meillo@11 | 75 dh_shlibdeps |
meillo@11 | 76 dh_gencontrol |
meillo@11 | 77 dh_md5sums |
meillo@11 | 78 dh_builddeb |
meillo@11 | 79 |
meillo@11 | 80 binary: binary-indep binary-arch |
meillo@11 | 81 .PHONY: build clean binary-indep binary-arch binary install |