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.
10 INST=$(CURDIR)/debian/dh-make-perl
16 # Add here commands to compile the package.
17 pod2man --center debian dh-make-perl > dh-make-perl.1
26 # Add here commands to clean up after the build process.
27 @for i in Strange-0.1 Strange-2.1; do\
28 if test -d "$$i/debian"; then \
36 dh_clean dh-make-perl.1 $(wildcard *.changes) $(wildcard *.deb) $(wildcard *.gz)
44 # Add here commands to install the package into debian/tmp.
45 #$(MAKE) install DESTDIR=`pwd`/debian/tmp
46 mkdir -p $(INST)/usr/bin
47 mkdir -p $(INST)/usr/share/dh-make-perl
48 cp dh-make-perl $(INST)/usr/bin
49 cp rules* $(INST)/usr/share/dh-make-perl
50 cp overrides $(INST)/usr/share/dh-make-perl
53 # Build architecture-independent files here.
54 binary-arch: build install
55 # We have nothing to do by default.
57 # Build architecture-dependent files here.
58 binary-indep: build install
62 dh_installman dh-make-perl.1
73 @echo >&2 'source and diff are obsolete - use dpkg-source -b'; false
75 binary: binary-indep binary-arch
76 .PHONY: build clean binary-indep binary-arch binary