genwebgallery
annotate debian/rules @ 2:abe1e48e0708
CHANGELOG gets generated now; reviewed Makefile
author | meillo@marmaro.de |
---|---|
date | Thu, 22 Nov 2007 21:36:20 +0100 |
parents | |
children | 626dacb5193e |
rev | line source |
---|---|
meillo@0 | 1 #!/usr/bin/make -f |
meillo@0 | 2 # -*- makefile -*- |
meillo@0 | 3 # Sample debian/rules that uses debhelper. |
meillo@0 | 4 # This file was originally written by Joey Hess and Craig Small. |
meillo@0 | 5 # As a special exception, when this file is copied by dh-make into a |
meillo@0 | 6 # dh-make output file, you may use that output file without restriction. |
meillo@0 | 7 # This special exception was added by Craig Small in version 0.37 of dh-make. |
meillo@0 | 8 |
meillo@0 | 9 # Uncomment this to turn on verbose mode. |
meillo@0 | 10 #export DH_VERBOSE=1 |
meillo@0 | 11 |
meillo@0 | 12 |
meillo@0 | 13 |
meillo@0 | 14 |
meillo@0 | 15 CFLAGS = -Wall -g |
meillo@0 | 16 |
meillo@0 | 17 ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) |
meillo@0 | 18 CFLAGS += -O0 |
meillo@0 | 19 else |
meillo@0 | 20 CFLAGS += -O2 |
meillo@0 | 21 endif |
meillo@0 | 22 |
meillo@0 | 23 configure: configure-stamp |
meillo@0 | 24 configure-stamp: |
meillo@0 | 25 dh_testdir |
meillo@0 | 26 # Add here commands to configure the package. |
meillo@0 | 27 |
meillo@0 | 28 touch configure-stamp |
meillo@0 | 29 |
meillo@0 | 30 |
meillo@0 | 31 build: build-stamp |
meillo@0 | 32 |
meillo@0 | 33 build-stamp: configure-stamp |
meillo@0 | 34 dh_testdir |
meillo@0 | 35 |
meillo@0 | 36 # Add here commands to compile the package. |
meillo@0 | 37 $(MAKE) |
meillo@0 | 38 #docbook-to-man debian/genwebgallery.sgml > genwebgallery.1 |
meillo@0 | 39 |
meillo@0 | 40 touch $@ |
meillo@0 | 41 |
meillo@0 | 42 clean: |
meillo@0 | 43 dh_testdir |
meillo@0 | 44 dh_testroot |
meillo@0 | 45 rm -f build-stamp configure-stamp |
meillo@0 | 46 |
meillo@0 | 47 # Add here commands to clean up after the build process. |
meillo@0 | 48 -$(MAKE) clean |
meillo@0 | 49 |
meillo@0 | 50 dh_clean |
meillo@0 | 51 |
meillo@0 | 52 install: build |
meillo@0 | 53 dh_testdir |
meillo@0 | 54 dh_testroot |
meillo@0 | 55 dh_clean -k |
meillo@0 | 56 dh_installdirs |
meillo@0 | 57 |
meillo@0 | 58 # Add here commands to install the package into debian/genwebgallery. |
meillo@0 | 59 $(MAKE) DESTDIR=$(CURDIR)/debian/genwebgallery install |
meillo@0 | 60 |
meillo@0 | 61 |
meillo@0 | 62 # Build architecture-independent files here. |
meillo@0 | 63 binary-indep: build install |
meillo@0 | 64 dh_testdir |
meillo@0 | 65 dh_testroot |
meillo@0 | 66 dh_installchangelogs |
meillo@0 | 67 dh_installdocs |
meillo@0 | 68 dh_installexamples |
meillo@0 | 69 # dh_install |
meillo@0 | 70 # dh_installmenu |
meillo@0 | 71 # dh_installdebconf |
meillo@0 | 72 # dh_installlogrotate |
meillo@0 | 73 # dh_installemacsen |
meillo@0 | 74 # dh_installpam |
meillo@0 | 75 # dh_installmime |
meillo@0 | 76 # dh_python |
meillo@0 | 77 # dh_installinit |
meillo@0 | 78 # dh_installcron |
meillo@0 | 79 # dh_installinfo |
meillo@0 | 80 dh_installman |
meillo@0 | 81 dh_link |
meillo@0 | 82 dh_strip |
meillo@0 | 83 dh_compress |
meillo@0 | 84 dh_fixperms |
meillo@0 | 85 # dh_perl |
meillo@0 | 86 # dh_makeshlibs |
meillo@0 | 87 dh_installdeb |
meillo@0 | 88 dh_shlibdeps |
meillo@0 | 89 dh_gencontrol |
meillo@0 | 90 dh_md5sums |
meillo@0 | 91 dh_builddeb |
meillo@0 | 92 |
meillo@0 | 93 # Build architecture-dependent files here. |
meillo@0 | 94 binary-arch: build install |
meillo@0 | 95 # We have nothing to do by default. |
meillo@0 | 96 |
meillo@0 | 97 binary: binary-indep binary-arch |
meillo@0 | 98 .PHONY: build clean binary-indep binary-arch binary install configure |