5
5
# Uncomment this to turn on verbose mode.
8
# This is the debhelper compatability version to use.
16
archlib =`$(PERL) -MConfig -e 'print $$Config{installarchlib}'`
17
config =INSTALLDIRS=perl INSTALLMAN1DIR=$(TMP)/usr/share/man/man1 INSTALLMAN3DIR=$(TMP)/usr/share/man/man3 INSTALLPRIVLIB=$(TMP)/usr/lib/perl5 INSTALLARCHLIB=$(TMP)$(archlib)
8
# This is the debhelper compatibility version to use.
11
PACKAGE=`pwd | sed -e "s/.*\/\\(.*\\)-.*/\\1/"`
24
16
# Add here commands to compile the package.
25
$(PERL) Makefile.PL $(config)
26
$(MAKE) CFLAGS="-O2 -g -Wall"
17
perl Makefile.PL verbose INSTALLDIRS=vendor
36
# Add here commands to clean up after the build process.
48
# Add here commands to install the package into debian/tmp.
53
# Build architecture-independent files here.
32
$(MAKE) PREFIX=$(CURDIR)/debian/$(PACKAGE)/usr OPTIMIZE="-O2 -g -Wall" test install
33
-find $(CURDIR)/debian -type d | xargs rmdir -p --ignore-fail-on-non-empty
34
-find $(CURDIR)/examples/ -exec chmod 755 {} \;
54
37
binary-indep: build install
55
# We have nothing to do by default.
57
# Build architecture-dependent files here.
58
binary-arch: build install
64
dh_installexamples examples/fetch_temp.pl examples/simple_dump.pl
71
dh_installchangelogs ChangeLog
76
# You may want to make some executables suid here
86
54
binary: binary-indep binary-arch
87
.PHONY: build clean binary-indep binary-arch binary install
55
.PHONY: build clean binary-indep binary-arch binary install configure