5
b := $(CURDIR)/debian/libapache-session-perl
7
binary: binary-arch binary-indep
9
binary-arch: build install
11
binary-indep: build install
15
dh_installexamples eg/*
16
dh_installchangelogs CHANGES
2
include /usr/share/quilt/quilt.make
28
$(PERL) Makefile.PL INSTALLDIRS=vendor
31
# This example should not have the executable bit on - It does not
32
# have a #!/usr/bin/perl line, and specifically advises not to just
34
chmod 644 eg/example.perl
5
build-stamp: $(QUILT_STAMPFN)
40
dh_clean build-stamp install-stamp
41
if [ -e Makefile ]; then $(MAKE) -i distclean; fi
43
12
install: install-stamp
44
13
install-stamp: build-stamp
47
$(MAKE) install PREFIX=$(b)/usr
48
# As this is a architecture independent package, we are not
49
# supposed to install stuff to /usr/lib. MakeMaker creates
50
# the dirs, we delete them from the deb:
51
[ ! -d $(b)/usr/lib/perl5 ] || rmdir --ignore-fail-on-non-empty --parents --verbose $(b)/usr/lib/perl5
55
.PHONY: binary binary-arch binary-indep build clean install
22
binary: binary-arch binary-indep
24
.PHONY: binary binary-arch binary-indep install clean build