genwebgallery

diff debian/rules @ 0:9f4fa0bc1584

initial commit
author meillo@marmaro.de
date Thu, 22 Nov 2007 21:13:25 +0100
parents
children 626dacb5193e
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/debian/rules	Thu Nov 22 21:13:25 2007 +0100
     1.3 @@ -0,0 +1,98 @@
     1.4 +#!/usr/bin/make -f
     1.5 +# -*- makefile -*-
     1.6 +# Sample debian/rules that uses debhelper.
     1.7 +# This file was originally written by Joey Hess and Craig Small.
     1.8 +# As a special exception, when this file is copied by dh-make into a
     1.9 +# dh-make output file, you may use that output file without restriction.
    1.10 +# This special exception was added by Craig Small in version 0.37 of dh-make.
    1.11 +
    1.12 +# Uncomment this to turn on verbose mode.
    1.13 +#export DH_VERBOSE=1
    1.14 +
    1.15 +
    1.16 +
    1.17 +
    1.18 +CFLAGS = -Wall -g
    1.19 +
    1.20 +ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
    1.21 +	CFLAGS += -O0
    1.22 +else
    1.23 +	CFLAGS += -O2
    1.24 +endif
    1.25 +
    1.26 +configure: configure-stamp
    1.27 +configure-stamp:
    1.28 +	dh_testdir
    1.29 +	# Add here commands to configure the package.
    1.30 +
    1.31 +	touch configure-stamp
    1.32 +
    1.33 +
    1.34 +build: build-stamp
    1.35 +
    1.36 +build-stamp: configure-stamp 
    1.37 +	dh_testdir
    1.38 +
    1.39 +	# Add here commands to compile the package.
    1.40 +	$(MAKE)
    1.41 +	#docbook-to-man debian/genwebgallery.sgml > genwebgallery.1
    1.42 +
    1.43 +	touch $@
    1.44 +
    1.45 +clean:
    1.46 +	dh_testdir
    1.47 +	dh_testroot
    1.48 +	rm -f build-stamp configure-stamp
    1.49 +
    1.50 +	# Add here commands to clean up after the build process.
    1.51 +	-$(MAKE) clean
    1.52 +
    1.53 +	dh_clean 
    1.54 +
    1.55 +install: build
    1.56 +	dh_testdir
    1.57 +	dh_testroot
    1.58 +	dh_clean -k 
    1.59 +	dh_installdirs
    1.60 +
    1.61 +	# Add here commands to install the package into debian/genwebgallery.
    1.62 +	$(MAKE) DESTDIR=$(CURDIR)/debian/genwebgallery install
    1.63 +
    1.64 +
    1.65 +# Build architecture-independent files here.
    1.66 +binary-indep: build install
    1.67 +	dh_testdir
    1.68 +	dh_testroot
    1.69 +	dh_installchangelogs 
    1.70 +	dh_installdocs
    1.71 +	dh_installexamples
    1.72 +#	dh_install
    1.73 +#	dh_installmenu
    1.74 +#	dh_installdebconf	
    1.75 +#	dh_installlogrotate
    1.76 +#	dh_installemacsen
    1.77 +#	dh_installpam
    1.78 +#	dh_installmime
    1.79 +#	dh_python
    1.80 +#	dh_installinit
    1.81 +#	dh_installcron
    1.82 +#	dh_installinfo
    1.83 +	dh_installman
    1.84 +	dh_link
    1.85 +	dh_strip
    1.86 +	dh_compress
    1.87 +	dh_fixperms
    1.88 +#	dh_perl
    1.89 +#	dh_makeshlibs
    1.90 +	dh_installdeb
    1.91 +	dh_shlibdeps
    1.92 +	dh_gencontrol
    1.93 +	dh_md5sums
    1.94 +	dh_builddeb
    1.95 +
    1.96 +# Build architecture-dependent files here.
    1.97 +binary-arch: build install
    1.98 +# We have nothing to do by default.
    1.99 +
   1.100 +binary: binary-indep binary-arch
   1.101 +.PHONY: build clean binary-indep binary-arch binary install configure