3 # Made with the aid of dh_make, by Craig Small
4 # Sample debian/rules that uses debhelper. GNU copyright 1997 by Joey Hess.
5 # Some lines taken from debmake, by Christoph Lameter.
7 # Uncomment this to turn on verbose mode.
9 export SBOX_REDIRECT_IGNORE:=/usr/bin/perl
11 export PATH:=/usr/bin/dh7:/usr/bin:$(PATH)
13 INST=$(CURDIR)/debian/dh-make-perl
19 # Add here commands to compile the package.
20 pod2man --center debian dh-make-perl > dh-make-perl.1
29 # Add here commands to clean up after the build process.
30 @for i in Strange-0.1 Strange-2.1; do\
31 if test -d "$$i/debian"; then \
39 dh_clean dh-make-perl.1 $(wildcard *.changes) $(wildcard *.deb) $(wildcard *.gz)
47 # Add here commands to install the package into debian/tmp.
48 #$(MAKE) install DESTDIR=`pwd`/debian/tmp
49 mkdir -p $(INST)/usr/bin
50 mkdir -p $(INST)/usr/share/dh-make-perl
51 cp dh-make-perl $(INST)/usr/bin
52 cp rules* $(INST)/usr/share/dh-make-perl
53 cp overrides $(INST)/usr/share/dh-make-perl
56 # Build architecture-independent files here.
57 binary-arch: build install
58 # We have nothing to do by default.
60 # Build architecture-dependent files here.
61 binary-indep: build install
65 dh_installman dh-make-perl.1
76 @echo >&2 'source and diff are obsolete - use dpkg-source -b'; false
78 binary: binary-indep binary-arch
79 .PHONY: build clean binary-indep binary-arch binary