2 # Note that I have to refer to debhelper programs with ./, to make sure
3 # I run the most current ones. That's also why there is a symlink to the
4 # current dh_lib and the current dh_getopt.pl in this debian/ directory.
6 # If any automatic script generation is done in building this package,
7 # be sure to use the new templates from this package.
8 export DH_AUTOSCRIPTDIR=autoscripts
10 # Figure out the current debhelper version.
11 VERSION=$(shell expr "`dpkg-parsechangelog 2>/dev/null`" : \
12 '.*Version: \(.*\).*Distribution:')
19 ./dh_testdir $(test_files)
20 sed "s/#DEBHELPER_VERSION#/$(VERSION)/" < dh_testversion.in \
22 chmod 755 dh_testversion
25 ./dh_testdir $(test_files)
27 ./dh_clean dh_testversion
29 # Build architecture-dependent files here.
31 # We have nothing to do by default.
33 # Build architecture-independent files here.
35 ./dh_testdir $(test_files)
38 ./dh_installdirs usr/bin usr/lib/debhelper
40 find . -perm +111 -maxdepth 1 -type f -not -name "*.pl" \
41 -exec install -p {} debian/tmp/usr/bin \;
42 cp -a dh_lib dh_getopt.pl *.pm debian/tmp/usr/lib/debhelper
43 cp -a autoscripts debian/tmp/usr/lib/debhelper
45 ./dh_installdocs doc/TODO doc/README doc/PROGRAMMING doc/from-debstd
46 ./dh_installexamples examples/*
49 ./dh_installchangelogs
59 binary: binary-indep binary-arch
60 .PHONY: build clean binary-indep binary-arch binary