baum

annotate debian/rules @ 49:00de718c8590

Added tag 0.3 for changeset f9fc4c4f9e3d666dad2bd1efa627fb646334433c
author meillo@marmaro.de
date Sun, 02 Mar 2008 13:35:42 +0100
parents ca56c1b3fb67
children
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_installdocs
meillo@21 55 dh_installexamples examples/*
meillo@20 56 dh_installman
meillo@20 57 dh_installchangelogs ChangeLog
meillo@20 58 dh_link
meillo@20 59 dh_strip
meillo@20 60 dh_compress
meillo@20 61 dh_fixperms
meillo@44 62 dh_makeshlibs
meillo@20 63 dh_installdeb
meillo@20 64 dh_shlibdeps
meillo@20 65 dh_gencontrol
meillo@20 66 dh_md5sums
meillo@20 67 dh_builddeb
meillo@20 68
meillo@20 69 binary: binary-indep binary-arch
meillo@20 70 .PHONY: build clean binary-indep binary-arch binary install