Debian Codegraph @

Makefile

raw
1 PROGS=braillegraph
2 MANS=$(PROGS:%=%.1)
3 TITLE=braillegraph
4 #TODO: $(VERSION)
5
6 all: $(MANS)
7 clean:
8 rm -f $(MANS)
9
10 # If we're in a git repository, most likely the timestamp will be useless
11 # -- but we can check the last commit date. When not in git, it's probably
12 # a tarball with files with good timestamps (use "git restore-mtime" when
13 # releasing). If some vandal used quilt, this will be wrong and
14 # non-reproducible -- but using quilt is wrong, period.
15 #
16 # Use perl instead of touch -d @foo because OpenBSD.
17 %.1: %.pod
18 $(QUIET_POD)d=`git log -1 --pretty="format:%ct" $<|cut -f 1 -d ' '`;\
19 if test -n "$$d";then perl -e "utime undef,$$d,'$<'";fi;\
20 pod2man -c "$(TITLE)" -s 1 -n `basename "$@"|sed 's/\.[0-9]$$//'|tr a-z A-Z` -r "$(VERSION)" -u $< >$@