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
|
#!/usr/bin/make -f
#-*- Makefile -*-
# File: rules
# Description: debian/yrules file for Debian package libparse-recdescent-perl
# Author: Rafael Laboissire <rafael@debian.org>
# Created on: Mon Jul 12 23:01:43 CEST 1999
# Last modified on: Sat Jul 12 20:07:08 CEST 2008
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
include /usr/share/quilt/quilt.make
ifndef PERL
PERL = /usr/bin/perl
endif
package = libparse-recdescent-perl
debtmp = $(shell pwd)/debian/$(package)
debusr = $(debtmp)/usr
deblib = $(debusr)/lib
debdoc = $(debusr)/share/doc/$(package)
debexa = $(debdoc)/examples
demofiles = demo/demo_*.pl
archlib = `$(PERL) -MConfig -e 'print $$Config{installarchlib}'`
config = INSTALLDIRS=perl INSTALLMAN1DIR=$(debtmp)/usr/man/man1 \
INSTALLMAN3DIR=$(debtmp)/usr/share/man/man3 \
INSTALLPRIVLIB=$(debtmp)/usr/share/perl5 \
INSTALLARCHLIB=$(debtmp)$(archlib)
Makefile: Makefile.PL
$(PERL) Makefile.PL $(config)
build: patch build-stamp
build-stamp: Makefile
dh_testdir
$(MAKE)
$(MAKE) test
touch build-stamp
clean: Makefile unpatch
dh_testdir
dh_testroot
$(MAKE) clean
dh_clean
install: install-stamp
install-stamp: build-stamp Makefile
dh_testdir
dh_testroot
dh_clean -k
$(MAKE) pure_install
rm -rf $(deblib)
find $(debusr) -name \*.pod -o -name \*.pl | xargs rm -f
find $(debusr) -name \*.pm | xargs chmod -x
touch install-stamp
binary-indep: build install
dh_testdir
dh_testroot
dh_installdocs
dh_installexamples $(demofiles)
$(PERL) -pi -e 's:^#!\s*/usr/local/bin/perl:#! $(PERL):' $(debexa)/*
chmod -x $(debexa)/*
dh_installchangelogs Changes
dh_compress --exclude=.pl
dh_fixperms
# dh_perl
dh_installdeb
dh_gencontrol
dh_md5sums
dh_builddeb
source diff:
@echo >&2 'source and diff are obsolete - use dpkg-source -b'; false
binary: binary-indep
.PHONY: build clean binary-indep binary
|