Add the original source packages to maemo, source lenny
[dh-make-perl] / dev / i386 / libextutils-parsexs-perl / libextutils-parsexs-perl-2.19 / debian / rules
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         $(PERL) Build.PL installdirs=vendor
25         $(PERL) Build
26         $(PERL) Build test
27         touch $@
28
29 clean:
30         dh_testdir
31         dh_testroot
32         dh_clean build-stamp install-stamp
33         [ ! -f Build ] || $(PERL) Build --allow_mb_mismatch 1 distclean
34
35 install: install-stamp
36 install-stamp: build-stamp
37         dh_testdir
38         dh_testroot
39         dh_clean -k
40         $(PERL) Build install destdir=$(TMP) create_packlist=0
41         touch $@
42
43 binary-arch:
44 # We have nothing to do here for an architecture-independent package
45
46 binary-indep: build install
47         dh_testdir
48         dh_testroot
49         dh_installdocs
50         dh_installchangelogs Changes
51         dh_perl
52         dh_compress
53         dh_fixperms
54         dh_installdeb
55         dh_gencontrol
56         dh_md5sums
57         dh_builddeb
58
59 binary: binary-indep binary-arch
60 .PHONY: build clean binary-indep binary-arch binary install