|
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 |
|
|
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 |
# Add commands to compile the package here
|
|
26 |
$(PERL) Makefile.PL INSTALLDIRS=vendor
|
|
27 |
$(MAKE)
|
|
28 |
$(MAKE) test
|
|
29 |
|
|
30 |
touch build-stamp
|
|
31 |
|
|
32 |
clean:
|
|
33 |
dh_testdir
|
|
34 |
dh_testroot
|
|
35 |
|
|
36 |
# Add commands to clean up after the build process here
|
|
37 |
[ ! -f Makefile ] || $(MAKE) realclean
|
|
38 |
|
|
39 |
dh_clean build-stamp install-stamp
|
|
40 |
|
|
41 |
install: build install-stamp
|
|
42 |
install-stamp:
|
|
43 |
dh_testdir
|
|
44 |
dh_testroot
|
|
45 |
dh_clean -k
|
|
46 |
|
|
47 |
# Add commands to install the package into debian/$PACKAGE_NAME here
|
|
48 |
$(MAKE) install DESTDIR=$(TMP) PREFIX=/usr
|
|
49 |
|
|
50 |
# As this is a architecture independent package, we are not
|
|
51 |
# supposed to install stuff to /usr/lib. MakeMaker creates
|
|
52 |
# the dirs, we delete them from the deb:
|
|
53 |
rmdir --ignore-fail-on-non-empty --parents $(TMP)/usr/lib/perl5
|
|
54 |
|
|
55 |
touch install-stamp
|
|
56 |
|
|
57 |
binary-arch:
|
|
58 |
# We have nothing to do here for an architecture-independent package
|
|
59 |
|
|
60 |
binary-indep: build install
|
|
61 |
dh_testdir
|
|
62 |
dh_testroot
|
|
63 |
dh_installexamples
|
|
64 |
dh_installdocs README
|
|
65 |
dh_installchangelogs Changes
|
|
66 |
dh_perl
|
|
67 |
dh_compress
|
|
68 |
dh_fixperms
|
|
69 |
dh_installdeb
|
|
70 |
dh_gencontrol
|
|
71 |
dh_md5sums
|
|
72 |
dh_builddeb
|
|
73 |
|
|
74 |
source diff:
|
|
75 |
@echo >&2 'source and diff are obsolete - use dpkg-source -b'; false
|
|
76 |
|
|
77 |
binary: binary-indep binary-arch
|
|
78 |
.PHONY: build clean binary-indep binary-arch binary
|