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
|
#!/usr/bin/make -f
# -*- makefile -*-
# debian/rules for perl-byacc
export SHELL=/bin/bash
package := $(firstword $(shell dh_listpackages))
destdir := $(CURDIR)/debian/$(package)
doc := $(destdir)/usr/share/doc/$(package)
examples := $(doc)/examples/perl5
version := $(shell dpkg-parsechangelog | \
sed -ne 's/^Version: *\([0-9]\+:\)*//p')
tag:
cvs tag -c -F $(subst .,_,debian_version_$(version))
ifeq ($(findstring -,$(version)),)
cvs tag -c -F $(subst .,_,upstream_version_$(version))
endif
build: build-arch build-indep
build-arch: build-stamp
build-indep: build-stamp
build-stamp:
dh_testdir
$(MAKE)
touch $@
clean: checkroot
rm -f *-stamp
-$(MAKE) clobber
dh_clean
binary-indep: checkroot build
binary-arch: checkroot build
dh_clean
dh_installdirs
$(MAKE) install DESTDIR=$(destdir)
dh_installdocs ACKNOWLEDGEMENTS NEW_FEATURES NO_WARRANTY
install -m 0644 perl5-patch/README $(doc)/README.Perl5
dh_installexamples -Xerror.tab.h test/*
install -D -m 0644 perl5-patch/Makefile $(examples)/Makefile
install -m 0644 perl5-patch/{Makefile,*.y,*.pl,*.pm,thought} $(examples)
dh_installman
dh_installchangelogs
dh_strip
dh_compress
dh_fixperms
dh_perl
dh_installdeb
dh_shlibdeps
dh_gencontrol
dh_md5sums
dh_builddeb
binary: binary-indep binary-arch
checkroot:
dh_testdir
dh_testroot
.PHONY: binary binary-indep binary-arch clean checkroot build
|