diff options
author | John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de> | 2014-03-16 20:52:50 +0100 |
---|---|---|
committer | Helge Deller <deller@gmx.de> | 2014-03-16 21:09:39 +0100 |
commit | 4a0fe17e9017117d58cd92ae18afa7510397013f (patch) | |
tree | 57b98895164c524706668f5225dd8e928b95a918 | |
parent | ce16f43b589fbc3188ac61cead6227cc6eeb3741 (diff) | |
download | palo-4a0fe17e9017117d58cd92ae18afa7510397013f.tar.gz |
Use dh to streamline debian/rules.
-rwxr-xr-x | debian/rules | 103 |
1 files changed, 18 insertions, 85 deletions
diff --git a/debian/rules b/debian/rules index f20b870..39726a1 100755 --- a/debian/rules +++ b/debian/rules @@ -1,94 +1,27 @@ #!/usr/bin/make -f +# -*- makefile -*- # Sample debian/rules that uses debhelper. -# GNU copyright 1997 to 1999 by Joey Hess. +# This file was originally written by Joey Hess and Craig Small. +# As a special exception, when this file is copied by dh-make into a +# dh-make output file, you may use that output file without restriction. +# This special exception was added by Craig Small in version 0.37 of dh-make. # Uncomment this to turn on verbose mode. -# export DH_VERBOSE=1 +#export DH_VERBOSE=1 -configure: configure-stamp -configure-stamp: - dh_testdir - # Add here commands to configure the package. - - touch configure-stamp - -build: build-arch build-indep -build-indep: build-stamp -build-stamp: - touch build-stamp - -build-arch: build-stamp - dh_testdir - - # Add here commands to compile the package. - $(MAKE) - #/usr/bin/docbook-to-man debian/palo.sgml > palo.1 - -clean: - # If we are on an hppa platform we need to regenerate iplboot - # here. Do it now so it is available for the source pkg build. +override_dh_auto_clean: + # When building on an hppa machine, regenerate iplboot which + # which is always shipped as a binary in the source package. + # This way, palo can also be built without problems on + # non-hppa build hosts. @if [ `dpkg --print-architecture` = hppa ]; \ - then \ - echo "Regenerating iplboot"; \ + then \ + echo "Regenerating iplboot."; \ $(MAKE) realclean; \ $(MAKE) iplboot; \ - else \ - echo "Leaving iplboot inplace as not packaging for hppa"; \ - fi - - dh_testdir - dh_testroot - rm -f build-stamp configure-stamp - - # Add here commands to clean up after the build process. - -$(MAKE) clean - - dh_clean - -install: build - dh_testdir - dh_testroot - dh_clean -k - dh_installdirs - - # Add here commands to install the package into debian/palo. - $(MAKE) install DESTDIR=`pwd`/debian/palo - - -# Build architecture-independent files here. -binary-indep: build install -# We have nothing to do by default. - -# Build architecture-dependent files here. -binary-arch: build install -# dh_testversion - dh_testdir - dh_testroot -# dh_installdebconf - dh_installdocs -# dh_installexamples -# dh_installmenu -# dh_installemacsen -# dh_installpam -# dh_installinit -# dh_installcron -# dh_installmanpages -# dh_installinfo -# dh_undocumented -# dh_installchangelogs Changes -# dh_link - dh_strip -# dh_compress - dh_fixperms - # You may want to make some executables suid here. -# dh_suidregister -# dh_makeshlibs - dh_installdeb -# dh_perl - dh_shlibdeps - dh_gencontrol - dh_md5sums - dh_builddeb + else \ + echo "Leaving iplboot in-place since we're not building on hppa."; \ + fi -binary: binary-indep binary-arch -.PHONY: build clean binary-indep binary-arch binary install configure +%: + dh $@ |