ran dh-make-perl
[libwww-opensearch-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 # Uncomment this to turn on verbose mode.
8 #export DH_VERBOSE=1
9
10 # If set to a true value then MakeMaker's prompt function will
11 # always return the default without waiting for user input.
12 export PERL_MM_USE_DEFAULT=1
13
14 PACKAGE=$(shell dh_listpackages)
15
16 ifndef PERL
17 PERL = /usr/bin/perl
18 endif
19
20 TMP     =$(CURDIR)/debian/$(PACKAGE)
21
22 build: build-stamp
23 build-stamp:
24         dh_testdir
25
26         # Add commands to compile the package here
27         $(PERL) Makefile.PL INSTALLDIRS=vendor
28         $(MAKE) OPTIMIZE="-Wall -O2 -g"
29
30         touch build-stamp
31
32 clean:
33         dh_testdir
34         dh_testroot
35
36         # Add commands to clean up after the build process here
37         [ ! -f Makefile ] || $(MAKE) realclean
38
39         dh_clean build-stamp install-stamp
40
41 install: build install-stamp
42 install-stamp:
43         dh_testdir
44         dh_testroot
45         dh_clean -k
46
47         # Add commands to install the package into debian/$PACKAGE_NAME here
48         $(MAKE) test
49         $(MAKE) install DESTDIR=$(TMP) PREFIX=/usr
50
51         # As this is a architecture independent package, we are not
52         # supposed to install stuff to /usr/lib. MakeMaker creates
53         # the dirs, we delete them from the deb:
54         rmdir --ignore-fail-on-non-empty --parents $(TMP)/usr/lib/perl5
55
56         touch install-stamp
57
58 binary-arch:
59 # We have nothing to do by default.
60
61 binary-indep: build install
62         dh_testdir
63         dh_testroot
64 #       dh_installcron
65 #       dh_installmenu
66 #       dh_installexamples
67         dh_installdocs README
68         dh_installchangelogs Changes
69         dh_perl
70         dh_link
71         dh_strip
72         dh_compress
73         dh_fixperms
74         dh_installdeb
75         dh_gencontrol
76         dh_md5sums
77         dh_builddeb
78
79 source diff:                                                                  
80         @echo >&2 'source and diff are obsolete - use dpkg-source -b'; false
81
82 binary: binary-indep binary-arch
83 .PHONY: build clean binary-indep binary-arch binary