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
|
#!/usr/bin/make -f
# -*- makefile -*-
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
DEB_VERSION := $(shell dpkg-parsechangelog | egrep '^Version:' | cut -f 2 -d ' ')
manpages = $(shell cat debian/manpages)
%.1: %.pod
pod2man -c 'Haskell devscripts documentation' -r 'Haskell devscripts $(DEB_VERSION)' $< > $@
%.1: %
pod2man -c 'Haskell devscripts documentation' -r 'Haskell devscripts $(DEB_VERSION)' $< > $@
.PHONY: build
build-indep: $(manpages)
build-arch:
build: build-arch build-indep
install-stamp:
dh install
.PHONY: install
install: install-stamp
binary-indep-stamp: install-stamp
dh binary-indep
touch $@
.PHONY: binary-indep
binary-indep: build-indep binary-indep-stamp
.PHONY: binary-arch
binary-arch: build-arch install-stamp
.PHONY: binary
binary: binary-indep-stamp
.PHONY: clean
clean:
dh clean
rm -f $(manpages)
|