summaryrefslogtreecommitdiff
path: root/man/Makefile.am
blob: 618c0bdec46a5da7ab49c5203dbef75ef892e0a6 (plain)
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
MANPAGE_GEN_FILES=manpage.template docgen default.cfg.template extra.cfg.template

docdir=$(prefix)/share/doc/@PACKAGE@

if HAVE_PYTHON

man_MANS=chocolate-doom.6      \
         chocolate-server.6    \
         chocolate-setup.6     \
         default.cfg.5         \
         $(PACKAGE).cfg.5

nodist_doc_DATA=INSTALL

chocolate-doom.6: ../src $(MANPAGE_GEN_FILES)
	./docgen -m manpage.template ../src > $@

default.cfg.5: ../src default.cfg.template
	./docgen -m default.cfg.template -c default.cfg ../src > $@

$(PACKAGE).cfg.5: ../src extra.cfg.template
	./docgen -m extra.cfg.template -c $(PACKAGE).cfg ../src > $@

INSTALL: INSTALL.template
	./simplecpp -DPRECOMPILED < INSTALL.template > $@

endif

EXTRA_DIST = $(man_MANS) $(MANPAGE_GEN_FILES)        \
             wikipages                               \
             CMDLINE.template                        \
             INSTALL.template                        \
             simplecpp