Code

Added "-f" option to rm(1) call.
[pkg-liblingua-de-ascii-perl.git] / debian / rules
1 #!/usr/bin/make -f
2 # debian/rules for liblingua-de-ascii-perl
3 #
4 # Written by Sebastian Harl <sh@tokkee.org>
6 # Uncomment this to turn on verbose mode.
7 #export DH_VERBOSE=1
9 # If set to a true value then MakeMaker's prompt function will
10 # always return the default without waiting for user input.
11 export PERL_MM_USE_DEFAULT=1
13 ifndef PERL
14         PERL = /usr/bin/perl
15 endif
17 build: build-stamp
19 build-stamp:
20         dh_testdir
21         
22         $(PERL) Makefile.PL INSTALLDIRS=vendor
23         $(MAKE)
24         
25         touch build-stamp
27 clean:
28         dh_testdir
29         dh_testroot
30         rm -f build-stamp install-stamp
31         
32         -$(MAKE) distclean
33         
34         dh_clean
36 install: install-stamp
38 install-stamp:
39         dh_testdir
40         dh_testroot
41         dh_clean -k
42         
43         $(MAKE) test
44         $(MAKE) install PREFIX=$(CURDIR)/debian/liblingua-de-ascii-perl/usr \
45                         MAN3EXT=3perl
46         
47         rm -f $(CURDIR)/debian/liblingua-de-ascii-perl/usr/share/man/man3/*.3pm
48         
49         touch install-stamp
51 binary-indep: build install
52         dh_testdir
53         dh_testroot
54         dh_installdocs README
55         dh_installchangelogs Changes
56         dh_perl
57         dh_link
58         dh_compress
59         dh_fixperms
60         dh_installdeb
61         dh_gencontrol
62         dh_md5sums
63         dh_builddeb
65 binary-arch:
66         # nothing to do here
68 binary: binary-indep binary-arch
69 .PHONY: build clean install binary binary-indep binary-arch