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
|
#!/usr/bin/make -f
# TODO: I should use upstream's Makefile with VERSION=$(VERSION) for
# installation, that would stop me making the same work as upstream's
# Makefile.
TMPDIR = tmp-debian-build
VERSION = $(shell dpkg-parsechangelog | egrep '^Version' | \
sed -r 's/Version:\s*//' | sed -r 's/^[0-9]+://' | \
sed -r 's/(\.dfsg)?-[0-9.]+//')
build-arch:
build-indep:
mkdir -p $(TMPDIR)
cat gitstats | perl -p -e 's/VERSION = 0/VERSION = "$(VERSION)"/' > $(TMPDIR)/gitstats
pod2man --center "User Commands" -r $(VERSION) doc/gitstats.pod > doc/gitstats.1
build: build-arch build-indep
clean:
rm -rf $(TMPDIR)
rm -f doc/gitstats.1
dh_testdir
dh_clean
install: build
dh_testdir
dh_testroot
dh_prep
dh_install
binary-arch:
binary-indep: build install
dh_testdir
dh_testroot
dh_installchangelogs
dh_installdocs
dh_installman
dh_compress
dh_fixperms
dh_installdeb
dh_gencontrol
dh_md5sums
dh_builddeb
binary: binary-indep binary-arch
.PHONY: build clean binary-indep binary-arch binary install
|