Debian lenny version packages
[pkg-perl] / deb-src / dh-make-perl / dh-make-perl-0.47 / rules.Module-Build.noxs
1 #!/usr/bin/make -f
2 # This debian/rules file is provided as a template for normal perl
3 # packages. It was created by Marc Brockschmidt <marc@dch-faq.de> for
4 # the Debian Perl Group (http://pkg-perl.alioth.debian.org/) but may
5 # be used freely wherever it is useful.
6 #
7 # It was later modified by Jason Kohles <email@jasonkohles.com>
8 # http://www.jasonkohles.com/ to support Module::Build installed modules
9
10 # Uncomment this to turn on verbose mode.
11 #export DH_VERBOSE=1
12
13 # If set to a true value then MakeMaker's prompt function will
14 # always return the default without waiting for user input.
15 export PERL_MM_USE_DEFAULT=1
16
17 PERL   ?= /usr/bin/perl
18 PACKAGE = $(shell dh_listpackages)
19 TMP     = $(CURDIR)/debian/$(PACKAGE)
20
21 build: build-stamp
22 build-stamp:
23         dh_testdir
24         # Add commands to compile the package here
25         $(PERL) Build.PL installdirs=vendor
26         $(PERL) Build
27         #TEST#
28         touch $@
29
30 clean:
31         dh_testdir
32         dh_testroot
33         dh_clean build-stamp install-stamp
34         # Add commands to clean up after the build process here
35         [ ! -f Build ] || $(PERL) Build --allow_mb_mismatch 1 distclean
36
37 install: install-stamp
38 install-stamp: build-stamp
39         dh_testdir
40         dh_testroot
41         dh_clean -k
42         # Add commands to install the package into $(TMP) here
43         $(PERL) Build install destdir=$(TMP) create_packlist=0
44         touch $@
45
46 binary-arch:
47 # We have nothing to do here for an architecture-independent package
48
49 binary-indep: build install
50         dh_testdir
51         dh_testroot
52         dh_installdocs #DOCS#
53         dh_installexamples #EXAMPLES#
54         dh_installchangelogs #CHANGES#
55         dh_perl
56         dh_compress
57         dh_fixperms
58         dh_installdeb
59         dh_gencontrol
60         dh_md5sums
61         dh_builddeb
62
63 binary: binary-indep binary-arch
64 .PHONY: build clean binary-indep binary-arch binary install