]> git.donarmstrong.com Git - deb_pkgs/libhtml-calendarmonth-perl.git/blob - debian/rules
c5814f2049edc546eb012f4d3fc00e4457d8c033
[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_prep
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: build install
45         dh_testdir
46         dh_testroot
47         dh_installchangelogs
48         dh_installdocs
49         dh_installexamples
50         dh_installman
51         dh_link
52         dh_compress
53         dh_fixperms
54         dh_installdeb
55         dh_perl
56         dh_shlibdeps
57         dh_gencontrol
58         dh_md5sums
59         dh_builddeb
60
61 # Build architecture-dependent files here.
62 binary-arch: 
63
64 binary: binary-indep binary-arch
65 .PHONY: build clean binary-indep binary-arch binary install