1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84
|
#!/usr/bin/make -f
PERL ?= /usr/bin/perl
DEST_DIR := $(shell pwd)/debian/libpoe-component-client-ident-perl
patch: patch-stamp
patch-stamp:
dh_testdir
if [ -e debian/patches ]; then \
for a in `ls debian/patches/*.diff`; do \
patch -f -p0 < $$a; \
done; \
fi;
rm -f unpatch-stamp;
touch $@
unpatch: unpatch-stamp
unpatch-stamp:
dh_testdir
if [ -e debian/patches ]; then \
for a in `ls debian/patches/*.diff`; do \
patch -f -p0 -R < $$a; \
done; \
fi;
rm -f patch-stamp
touch $@
binary: binary-indep binary-arch
binary-arch: build install
binary-indep: binary-indep-stamp
binary-indep-stamp: install
dh_testdir
dh_testroot
dh_installdocs README
dh_installchangelogs Changes
dh_fixperms
dh_installdeb
dh_perl
dh_compress
dh_gencontrol
dh_md5sums
dh_builddeb
touch $@
build: build-stamp
build-stamp:
dh_testdir
$(PERL) -I. Makefile.PL INSTALLDIRS=vendor
$(MAKE)
$(MAKE) test
touch $@
clean:
dh_testdir
dh_testroot
rm -f *-stamp
if [ -e Makefile ]; then \
$(MAKE) -i distclean;\
fi
dh_clean
install: install-stamp
install-stamp: build
dh_testdir
dh_testroot
dh_clean -k
dh_installdirs
$(MAKE) install DESTDIR=$(DEST_DIR)
[ ! -d $(DEST_DIR)/usr/lib/perl5 ] || \
rmdir --ignore-fail-on-non-empty --parents $(DEST_DIR)/usr/lib/perl5
touch install-stamp
.PHONY: binary binary-arch binary-indep clean install
|