pass lintian/linda
[liburi-template-perl.git] / 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 PACKAGE=$(shell dh_listpackages)
18
19 ifndef PERL
20 PERL = /usr/bin/perl
21 endif
22
23 TMP     =$(CURDIR)/debian/$(PACKAGE)
24
25 build: build-stamp
26 build-stamp:
27         dh_testdir
28
29         $(PERL) Build.PL installdirs=vendor
30         OPTIMIZE="-Wall -O2 -g" $(PERL) Build
31
32         touch build-stamp
33
34 clean:
35         dh_testdir
36         dh_testroot
37
38         # Add commands to clean up after the build process here
39         [ ! -f Build ] || $(PERL) Build distclean
40
41         dh_clean build-stamp install-stamp
42
43 install: build install-stamp
44 install-stamp:
45         dh_testdir
46         dh_testroot
47         dh_clean -k
48
49         $(PERL) Build test
50         $(PERL) Build install destdir=$(TMP)
51
52         touch install-stamp
53
54 binary-arch:
55 # We have nothing to do by default.
56
57 binary-indep: build install
58         dh_testdir
59         dh_testroot
60         dh_installdocs 
61         dh_installchangelogs 
62         dh_perl
63         dh_link
64         dh_strip
65         dh_compress
66         dh_fixperms
67         dh_installdeb
68         dh_gencontrol
69         dh_md5sums
70         dh_builddeb
71
72 source diff:                                                                  
73         @echo >&2 'source and diff are obsolete - use dpkg-source -b'; false
74
75 binary: binary-indep binary-arch
76 .PHONY: build clean binary-indep binary-arch binary