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
|
#! /usr/bin/make -f
# -*-makefile-*-
# debian/rules file for libhtml-clean-perl
include /usr/share/quilt/quilt.make
PERL ?= /usr/bin/perl
package := $(firstword $(shell dh_listpackages))
tmp := $(CURDIR)/debian/$(package)
build: build-stamp
build-stamp: $(QUILT_STAMPFN)
dh_testdir
$(PERL) Makefile.PL INSTALLDIRS=vendor PERL=$(PERL)
$(MAKE)
$(MAKE) test
touch $@
clean: checkroot unpatch
dh_clean build-stamp
# Remove the output from the test
rm -f t/testpages/t*.html
[ ! -e Makefile ] || $(MAKE) distclean
binary-indep: checkroot build
dh_clean
$(MAKE) install DESTDIR=$(tmp)
# As this is a architecture independent package, we are not
# supposed to install stuff to /usr/lib. MakeMaker creates
# the dirs, we delete them from the deb:
[ ! -d $(tmp)/usr/lib/perl5 ] || rmdir --ignore-fail-on-non-empty --parents --verbose $(tmp)/usr/lib/perl5
dh_installdocs README TODO
dh_installchangelogs Changes
dh_compress
dh_fixperms
dh_perl
dh_installdeb
dh_gencontrol
dh_md5sums
dh_builddeb
binary-arch: checkroot build
binary: binary-indep binary-arch
checkroot:
dh_testdir
dh_testroot
.PHONY: binary binary-arch binary-indep clean checkroot build
|