]> git.donarmstrong.com Git - deb_pkgs/libhtml-calendarmonth-perl.git/blob - debian/rules
* Handle a non-existent /usr/lib/perl5 properly (for perl 5.10)
[deb_pkgs/libhtml-calendarmonth-perl.git] / debian / rules
1 #!/usr/bin/make -f
2
3 # Uncomment this to turn on verbose mode.
4 #export DH_VERBOSE=1
5
6 DESTDIR=$(CURDIR)/debian/$(shell dh_listpackages|head -n 1)
7
8 build: build-stamp
9 build-stamp:
10         dh_testdir
11
12         perl Makefile.PL INSTALLDIRS=vendor
13         $(MAKE)
14
15         touch $@
16
17 test: test-stamp
18 test-stamp:
19         dh_testdir
20         $(MAKE) test
21         touch $@
22
23
24 clean:
25         dh_testdir
26         dh_testroot
27         rm -f build-stamp test-stamp
28
29         if [ -e Makefile ]; then $(MAKE) distclean; fi
30
31         dh_clean
32
33 install: build test
34         dh_testdir
35         dh_testroot
36         dh_clean -k
37         dh_installdirs
38
39         $(MAKE) install PREFIX=$(DESTDIR)/usr
40         [ ! -d $(DESTDIR)/usr/lib/perl5 ] || \
41                 rmdir -p --ignore-fail-on-non-empty$(DESTDIR)/usr/lib/perl5
42
43 # Build architecture-independent files here.
44 binary-indep: install
45 # We have nothing to do by default.
46
47 # Build architecture-dependent files here.
48 binary-arch: build install
49         dh_testdir
50         dh_testroot
51         dh_installchangelogs
52         dh_installdocs
53         dh_installexamples
54         dh_installman
55         dh_link
56         dh_compress
57         dh_fixperms
58         dh_installdeb
59         dh_perl
60         dh_shlibdeps
61         dh_gencontrol
62         dh_md5sums
63         dh_builddeb
64
65 binary: binary-indep binary-arch
66 .PHONY: build clean binary-indep binary-arch binary install