baum

annotate debian/rules @ 28:ed3eb4b497e5

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