0 | 0 |
#!/usr/bin/make -f
|
1 | |
#-*- makefile -*-
|
2 | |
# Made with the aid of dh_make, by Craig Small
|
3 | |
# Sample debian/rules that uses debhelper. GNU copyright 1997 by Joey Hess.
|
4 | |
# Some lines taken from debmake, by Christoph Lameter.
|
|
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 | 5 |
|
6 | 6 |
# Uncomment this to turn on verbose mode.
|
7 | 7 |
#export DH_VERBOSE=1
|
8 | 8 |
|
9 | |
#for noninteractive installs
|
|
9 |
# If set to a true value then MakeMaker's prompt function will
|
|
10 |
# always return the default without waiting for user input.
|
10 | 11 |
export PERL_MM_USE_DEFAULT=1
|
11 | 12 |
|
12 | 13 |
PACKAGE=$(shell dh_listpackages)
|
|
15 | 16 |
PERL = /usr/bin/perl
|
16 | 17 |
endif
|
17 | 18 |
|
18 | |
ifndef DESTDIR
|
19 | |
DESTDIR=..
|
20 | |
endif
|
21 | |
TMP =`pwd`/debian/$(PACKAGE)
|
|
19 |
TMP =$(CURDIR)/debian/$(PACKAGE)
|
22 | 20 |
|
23 | 21 |
build: build-stamp
|
24 | 22 |
build-stamp:
|
25 | 23 |
dh_testdir
|
26 | 24 |
|
27 | |
|
28 | |
# Add here commands to compile the package.
|
29 | 25 |
$(PERL) Makefile.PL INSTALLDIRS=vendor
|
30 | |
$(MAKE) OPTIMIZE="-O2 -g -Wall"
|
|
26 |
$(MAKE)
|
|
27 |
$(MAKE) test
|
31 | 28 |
|
32 | |
touch build-stamp
|
|
29 |
touch $@
|
33 | 30 |
|
34 | 31 |
clean:
|
35 | 32 |
dh_testdir
|
36 | 33 |
dh_testroot
|
37 | |
rm -f build-stamp
|
38 | 34 |
|
39 | |
# Add here commands to clean up after the build process.
|
40 | |
-$(MAKE) realclean
|
|
35 |
dh_clean build-stamp install-stamp
|
|
36 |
[ ! -f Makefile ] || $(MAKE) realclean
|
41 | 37 |
|
42 | |
dh_clean
|
43 | |
|
44 | |
install:
|
|
38 |
install: install-stamp
|
|
39 |
install-stamp: build-stamp
|
45 | 40 |
dh_testdir
|
46 | 41 |
dh_testroot
|
47 | 42 |
dh_clean -k
|
48 | |
dh_installdirs
|
49 | 43 |
|
50 | |
# Add here commands to install the package into debian/tmp.
|
51 | |
$(MAKE) test
|
52 | |
$(MAKE) install PREFIX=$(TMP)/usr
|
|
44 |
$(MAKE) install DESTDIR=$(TMP) PREFIX=/usr
|
53 | 45 |
[ ! -d $(TMP)/usr/lib/perl5 ] || rmdir --ignore-fail-on-non-empty --parents --verbose $(TMP)/usr/lib/perl5
|
54 | 46 |
|
|
47 |
touch $@
|
55 | 48 |
|
56 | |
# Build architecture-dependent files here.
|
57 | |
binary-arch: build install
|
58 | |
# We have nothing to do by default.
|
|
49 |
binary-arch:
|
|
50 |
# We have nothing to do here for an architecture-independent package
|
59 | 51 |
|
60 | |
# Build architecture-independent files here.
|
61 | 52 |
binary-indep: build install
|
62 | 53 |
dh_testdir
|
63 | 54 |
dh_testroot
|
64 | |
dh_installdocs README
|
65 | |
dh_installman
|
|
55 |
dh_installdocs
|
66 | 56 |
dh_installchangelogs Changes
|
67 | |
dh_link
|
68 | |
dh_strip
|
|
57 |
dh_perl
|
69 | 58 |
dh_compress
|
70 | 59 |
dh_fixperms
|
71 | 60 |
dh_installdeb
|
72 | |
dh_perl
|
73 | |
dh_shlibdeps
|
74 | 61 |
dh_gencontrol
|
75 | 62 |
dh_md5sums
|
76 | 63 |
dh_builddeb
|
77 | 64 |
|
78 | |
source diff:
|
|
65 |
source diff:
|
79 | 66 |
@echo >&2 'source and diff are obsolete - use dpkg-source -b'; false
|
80 | 67 |
|
81 | 68 |
binary: binary-indep binary-arch
|
82 | |
.PHONY: build clean binary-indep binary-arch binary
|
|
69 |
.PHONY: build clean binary-indep binary-arch binary install
|