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:')
20 cd autoscripts && ln -sf postinst-menu postrm-menu
21 cd debian && ln -sf ../dh_lib dh_lib
22 cd debian && ln -sf ../dh_getopt.pl dh_getopt.pl
24 ./dh_testdir $(test_files)
25 sed "s/#DEBHELPER_VERSION#/$(VERSION)/" < dh_testversion.in \
27 chmod 755 dh_testversion
30 ./dh_testdir $(test_files)
32 ./dh_clean dh_testversion
34 # Build architecture-dependent files here.
36 # We have nothing to do by default.
38 # Build architecture-independent files here.
40 ./dh_testdir $(test_files)
43 ./dh_installdirs usr/bin usr/lib/debhelper
45 find . -perm +111 -maxdepth 1 -type f -not -name "*.pl" \
46 -exec install -p {} debian/tmp/usr/bin \;
47 cp -a dh_lib dh_getopt.pl debian/tmp/usr/lib/debhelper
48 cp -a autoscripts debian/tmp/usr/lib/debhelper
50 ./dh_installdocs TODO README PROGRAMMING
51 ./dh_installexamples examples/*
54 ./dh_installchangelogs
64 binary: binary-indep binary-arch
65 .PHONY: build clean binary-indep binary-arch binary