9
TMP = `pwd`/debian/`dh_listpackages`
12
# Uncomment this to turn on verbose mode.
15
# This is the debhelper compatibility version to use.
21
# File etc/shtool comes from a patch and must be set executable
23
./configure --prefix=/usr
24
# Remove unneded library flags
25
perl -pi -e 's/ -l\S*db\S*//g' Makefile config.status config_sc.h
29
mv Makefile Makefile.stand-alone
31
$(PERL) Makefile.PL INSTALLDIRS=vendor
32
$(MAKE) OPTIMIZE="-O2 -g -Wall" LD_RUN_PATH=
41
rm -f Makefile.stand-alone
48
dh_installdirs usr/lib/cgi-bin
50
# Install eperl binary
51
$(MAKE) -f Makefile.stand-alone install prefix=$(TMP)/usr
52
# ... and perl modules
53
$(MAKE) install PREFIX=$(TMP)/usr
54
find $(TMP) -type d -empty | xargs -r rmdir -p --ignore-fail-on-non-empty
55
rm -rf $(TMP)/usr/lib/eperl
57
# Build architecture-independent files here.
59
# There are no architecture-independent files to be uploaded
60
# generated by this package. If there were any they would be
63
# Build architecture-dependent files here.
64
binary-arch: build install
68
dh_installdocs ANNOUNCE CREDITS KNOWN.BUGS NEWS PORTING \
69
README VERSIONS ChangeLog.* contrib/utils/
70
dh_installexamples eg/*
76
dh_installchangelogs ChangeLog
77
dh_link usr/bin/eperl usr/lib/cgi-bin/nph-eperl
89
binary: binary-indep binary-arch
90
.PHONY: build clean binary-indep binary-arch binary install