2 # Sample debian/rules that uses debhelper. GNU copyright 1997 to 1999 by Joey
5 # Uncomment this to turn on verbose mode.
8 include /usr/share/quilt/quilt.make
10 PACKAGE=$(shell dh_listpackages)
11 TMP=$(CURDIR)/debian/$(PACKAGE)
12 SHAREDIR=$(TMP)/usr/share/$(PACKAGE)
16 build-stamp: $(QUILT_STAMPFN)
18 $(PERL) Build.PL installdirs=vendor script_files=
20 HOME= $(PERL) ./Build test
27 dh_clean build-stamp install-stamp
28 [ ! -f Build ] || $(PERL) ./Build realclean
30 install: install-stamp
31 install-stamp: build-stamp
36 $(PERL) ./Build install destdir=$(TMP) create_packlist=0
38 # scripts/config_data is installed in /usr/share/libmodule-build-perl
39 # for historical reasons (?)
40 install -d $(SHAREDIR)
41 install -m755 scripts/* $(SHAREDIR)
43 [ ! -d $(TMP)/usr/lib/perl5 ] || rmdir --ignore-fail-on-non-empty --parents --verbose $(TMP)/usr/lib/perl5
53 dh_installchangelogs Changes
62 binary: binary-indep binary-arch
63 .PHONY: build clean binary-indep binary-arch binary install