summaryrefslogtreecommitdiff
path: root/man/Makefile.am
blob: 6a0c59657414a58e2214753594d824836d44b8c3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
MANPAGE_GEN_FILES=chocolate-doom-options.in head foot Makefile doom-options.in

man_MANS=chocolate-doom.6

EXTRA_DIST = $(man_MANS) $(MANPAGE_GEN_FILES)

chocolate-doom.6: $(MANPAGE_GEN_FILES)
	cp head $@
	echo .SH DOOM OPTIONS >> $@
	awk -F"\t" '{print ".TP\n\\fB"$$1"\\fR"; $$1=""; print }' < doom-options.in >>$@
	echo .SH CHOCOLATE\\-DOOM OPTIONS >> $@
	awk -F"\t" '{print ".TP\n\\fB"$$1"\\fR"; $$1=""; print }' < chocolate-doom-options.in >>$@
	m4 -DAUTHORS="`cat ../AUTHORS`" foot >> $@