0 | |
#!/usr/bin/make -f
|
1 | |
# Sample debian/rules that uses debhelper.
|
2 | |
# GNU copyright 1997 to 1999 by Joey Hess.
|
|
0 |
#! /usr/bin/make -f
|
3 | 1 |
|
4 | |
# Uncomment this to turn on verbose mode.
|
5 | |
#export DH_VERBOSE=1
|
6 | |
|
7 | |
tmp = $(CURDIR)/debian/libfilter-perl
|
8 | |
config = INSTALLDIRS=vendor INSTALLMAN3DIR=/usr/share/man/man3
|
9 | |
vendorarch = `perl -MConfig -e 'print $$Config{vendorarch}'`
|
10 | |
|
11 | |
configure: configure-stamp
|
12 | |
configure-stamp:
|
13 | |
dh_testdir
|
14 | |
# Add here commands to configure the package.
|
15 | |
perl Makefile.PL $(config)
|
16 | |
|
17 | |
touch configure-stamp
|
18 | |
|
19 | |
build: configure build-stamp
|
20 | |
build-stamp:
|
21 | |
dh_testdir
|
22 | |
|
23 | |
# Add here commands to compile the package.
|
24 | 2 |
ifeq (,$(filter noopt,$(DEB_BUILD_OPTIONS)))
|
25 | |
$(MAKE) OPTIMIZE="-O2 -g -Wall"
|
|
3 |
CFLAGS := -O2 -g -Wall
|
26 | 4 |
else
|
27 | |
$(MAKE) OPTIMIZE="-g -Wall"
|
|
5 |
CFLAGS := -g -Wall
|
28 | 6 |
endif
|
29 | 7 |
|
30 | |
touch build-stamp
|
|
8 |
%:
|
|
9 |
dh $@
|
31 | 10 |
|
32 | |
clean: configure
|
33 | |
dh_testdir
|
34 | |
dh_testroot
|
|
11 |
override_dh_auto_configure:
|
|
12 |
dh_auto_configure -- INSTALLMAN3DIR=/usr/share/man/man3
|
35 | 13 |
|
36 | |
# Add here commands to clean up after the build process.
|
37 | |
[ ! -f Makefile ] || $(MAKE) realclean
|
38 | |
rm -f Try.pm # for 'make test'
|
39 | |
|
40 | |
dh_clean build-stamp configure-stamp
|
41 | |
|
42 | |
install: build
|
43 | |
dh_testdir
|
44 | |
dh_testroot
|
45 | |
dh_clean -k
|
46 | |
dh_installdirs
|
47 | |
|
48 | |
# Add here commands to install the package into debian/tmp.
|
49 | |
$(MAKE) install PREFIX=$(tmp)/usr
|
50 | |
|
51 | |
# Build architecture-independent files here.
|
52 | |
binary-indep: build install
|
53 | |
# We have nothing to do by default.
|
54 | |
|
55 | |
# Build architecture-dependent files here.
|
56 | |
binary-arch: build install
|
57 | |
dh_testdir
|
58 | |
dh_testroot
|
59 | |
dh_installdocs
|
60 | |
dh_installexamples
|
61 | |
dh_installchangelogs Changes
|
62 | |
dh_strip
|
63 | |
dh_compress
|
64 | |
dh_fixperms
|
65 | |
dh_installdeb
|
66 | |
dh_perl
|
67 | |
dh_shlibdeps
|
68 | |
dh_gencontrol
|
69 | |
dh_md5sums
|
70 | |
dh_builddeb
|
71 | |
|
72 | |
binary: binary-indep binary-arch
|
73 | |
.PHONY: build clean binary-indep binary-arch binary install configure
|
|
14 |
override_dh_auto_build:
|
|
15 |
dh_auto_build -- OPTIMIZE="$(CFLAGS)"
|