0 | 0 |
#!/usr/bin/make -f
|
1 | |
# This debian/rules file is provided as a template for normal perl
|
2 | |
# packages. It was created by Marc Brockschmidt <marc@dch-faq.de> for
|
3 | |
# the Debian Perl Group (http://pkg-perl.alioth.debian.org/) but may
|
4 | |
# be used freely wherever it is useful.
|
5 | 1 |
|
6 | |
# Uncomment this to turn on verbose mode.
|
7 | |
#export DH_VERBOSE=1
|
8 | |
|
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
|
12 | |
|
13 | |
PACKAGE=$(shell dh_listpackages)
|
14 | |
|
15 | |
ifndef PERL
|
16 | |
PERL = /usr/bin/perl
|
17 | |
endif
|
18 | |
|
19 | |
TMP =$(CURDIR)/debian/$(PACKAGE)
|
20 | |
|
21 | |
build: build-stamp
|
22 | |
build-stamp:
|
23 | |
dh_testdir
|
24 | |
|
25 | |
$(PERL) Makefile.PL INSTALLDIRS=vendor
|
26 | |
$(MAKE)
|
27 | |
$(MAKE) test
|
28 | |
|
29 | |
touch build-stamp
|
30 | |
|
31 | |
clean:
|
32 | |
dh_testdir
|
33 | |
dh_testroot
|
34 | |
|
35 | |
[ ! -f Makefile ] || $(MAKE) realclean
|
36 | |
|
37 | |
dh_clean build-stamp install-stamp
|
38 | |
|
39 | |
install: install-stamp
|
40 | |
install-stamp: build-stamp
|
41 | |
dh_testdir
|
42 | |
dh_testroot
|
43 | |
dh_clean -k
|
44 | |
|
45 | |
$(MAKE) install DESTDIR=$(TMP) PREFIX=/usr
|
46 | |
|
47 | |
# As this is a architecture independent package, we are not
|
48 | |
# supposed to install stuff to /usr/lib. MakeMaker creates
|
49 | |
# the dirs, we delete them from the deb:
|
50 | |
[ ! -d $(TMP)/usr/lib/perl5 ] || rmdir --ignore-fail-on-non-empty --parents --verbose $(TMP)/usr/lib/perl5
|
51 | |
|
52 | |
touch install-stamp
|
53 | |
|
54 | |
binary-arch:
|
55 | |
# We have nothing to do for an architecture-independent package here
|
56 | |
|
57 | |
binary-indep: build install
|
58 | |
dh_testdir
|
59 | |
dh_testroot
|
60 | |
dh_installexamples -X.svn examples/*
|
61 | |
dh_installdocs
|
62 | |
dh_installchangelogs Changes
|
63 | |
dh_perl
|
64 | |
dh_compress
|
65 | |
dh_fixperms
|
66 | |
dh_installdeb
|
67 | |
dh_gencontrol
|
68 | |
dh_md5sums
|
69 | |
dh_builddeb
|
70 | |
|
71 | |
source diff:
|
72 | |
@echo >&2 'source and diff are obsolete - use dpkg-source -b'; false
|
73 | |
|
74 | |
binary: binary-indep binary-arch
|
75 | |
.PHONY: build clean binary-indep binary-arch binary
|
|
2 |
%:
|
|
3 |
dh $@
|