]> git.donarmstrong.com Git - deb_pkgs/libhtml-calendarmonth-perl.git/blob - debian/rules
upgrade to 1.26; fix lintian issues
[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-arch: build
9 build-indep: build
10
11 build: build-stamp
12 build-stamp:
13         dh_testdir
14
15         perl Makefile.PL INSTALLDIRS=vendor
16         $(MAKE)
17
18         touch $@
19
20 test: test-stamp
21 test-stamp:
22         dh_testdir
23         $(MAKE) test
24         touch $@
25
26
27 clean:
28         dh_testdir
29         dh_testroot
30         rm -f build-stamp test-stamp
31
32         if [ -e Makefile ]; then $(MAKE) distclean; fi
33
34         dh_clean
35
36 install: build test
37         dh_testdir
38         dh_testroot
39         dh_prep
40         dh_installdirs
41
42         $(MAKE) install PREFIX=$(DESTDIR)/usr
43         [ ! -d $(DESTDIR)/usr/lib/perl5 ] || \
44                 rmdir -p --ignore-fail-on-non-empty $(DESTDIR)/usr/lib/perl5
45
46 # Build architecture-independent files here.
47 binary-indep: build install
48         dh_testdir
49         dh_testroot
50         dh_installchangelogs
51         dh_installdocs
52         dh_installexamples
53         dh_installman
54         dh_link
55         dh_compress
56         dh_fixperms
57         dh_installdeb
58         dh_perl
59         dh_shlibdeps
60         dh_gencontrol
61         dh_md5sums
62         dh_builddeb
63
64 # Build architecture-dependent files here.
65 binary-arch: 
66
67 binary: binary-indep binary-arch
68 .PHONY: build clean binary-indep binary-arch binary install