Use dh(1) for very short debian/rules.
1.1 --- a/debian/rules Tue Nov 10 11:40:55 2009 +0000
1.2 +++ b/debian/rules Tue Nov 10 12:06:15 2009 +0000
1.3 @@ -1,85 +1,12 @@
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 + dh $@
1.13
1.14 -# Uncomment this to turn on verbose mode.
1.15 -#export DH_VERBOSE=1
1.16 -
1.17 -configure: configure-stamp
1.18 -configure-stamp:
1.19 - dh_testdir
1.20 - # Add here commands to configure the package.
1.21 -
1.22 - touch configure-stamp
1.23 -
1.24 -build: build-stamp
1.25 -
1.26 -build-stamp: configure-stamp
1.27 - dh_testdir
1.28 -
1.29 - # Add here commands to compile the package.
1.30 - #docbook-to-man debian/mercurial-server.sgml > mercurial-server.1
1.31 -
1.32 - touch $@
1.33 -
1.34 -clean:
1.35 - dh_testdir
1.36 - dh_testroot
1.37 - rm -f build-stamp configure-stamp
1.38 -
1.39 - # Add here commands to clean up after the build process.
1.40 -
1.41 - dh_clean
1.42 -
1.43 -install: build
1.44 - dh_testdir
1.45 - dh_testroot
1.46 - dh_clean -k
1.47 - dh_installdirs
1.48 -
1.49 - # Add here commands to install the package into debian/mercurial-server.
1.50 +override_dh_auto_install:
1.51 $(MAKE) installfiles \
1.52 TOPDIR=debian/mercurial-server \
1.53 PREFIX=debian/mercurial-server/usr/share
1.54
1.55 -# Build architecture-independent files here.
1.56 -binary-indep: build install
1.57 -# We have nothing to do by default.
1.58 +override_dh_pysupport:
1.59 + dh_pysupport /usr/share/mercurial-server/mercurialserver
1.60
1.61 -# Build architecture-dependent files here.
1.62 -binary-arch: build install
1.63 - dh_testdir
1.64 - dh_testroot
1.65 - dh_installchangelogs
1.66 - dh_installdocs
1.67 -# dh_installexamples
1.68 -# dh_install
1.69 -# dh_installmenu
1.70 -# dh_installdebconf
1.71 -# dh_installlogrotate
1.72 -# dh_installemacsen
1.73 -# dh_installpam
1.74 -# dh_installmime
1.75 - dh_pysupport /usr/share/mercurial-server/mercurialserver
1.76 -# dh_installinit
1.77 -# dh_installcron
1.78 -# dh_installinfo
1.79 -# dh_installman
1.80 -# dh_link
1.81 -# dh_strip
1.82 - dh_compress
1.83 - dh_fixperms
1.84 -# dh_perl
1.85 -# dh_makeshlibs
1.86 - dh_installdeb
1.87 -# dh_shlibdeps
1.88 - dh_gencontrol
1.89 - dh_md5sums
1.90 - dh_builddeb
1.91 -
1.92 -binary: binary-indep binary-arch
1.93 -.PHONY: build clean binary-indep binary-arch binary install configure