summaryrefslogtreecommitdiff
path: root/man/Makefile.am
blob: 5eb787f1578256652d15537b5e0f957988536f4e (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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
MANPAGE_GEN_FILES=\
        doom.template \
        heretic.template \
        hexen.template \
        strife.template \
        docgen \
        default.cfg.template \
        extra.cfg.template

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

if HAVE_PYTHON

man_MANS=chocolate-server.6       \
         chocolate-setup.6        \
         chocolate-doom.6         \
         default.cfg.5            \
         chocolate-doom.cfg.5     \
         chocolate-heretic.6      \
         heretic.cfg.5            \
         chocolate-heretic.cfg.5  \
         chocolate-hexen.6        \
         hexen.cfg.5              \
         chocolate-hexen.cfg.5    \
         chocolate-strife.6       \
         strife.cfg.5             \
         chocolate-strife.cfg.5

nodist_doc_DATA=INSTALL CMDLINE.doom CMDLINE.heretic \
                CMDLINE.hexen CMDLINE.strife



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

default.cfg.5: ../src default.cfg.template
	./docgen -g doom -m default.cfg.template \
                 -c default ../src/m_config.c > $@

chocolate-doom.cfg.5: ../src extra.cfg.template
	./docgen -g doom -m extra.cfg.template \
                 -c extended ../src/m_config.c > $@

CMDLINE.doom : ../src ../src/doom
	./docgen -p CMDLINE.template ../src/ ../src/doom/ > $@



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

heretic.cfg.5: ../src default.cfg.template
	./docgen -g heretic -m default.cfg.template \
                 -c default ../src/m_config.c > $@

chocolate-heretic.cfg.5: ../src extra.cfg.template
	./docgen -g heretic -m extra.cfg.template \
                 -c extended ../src/m_config.c > $@

CMDLINE.heretic : ../src ../src/heretic
	./docgen -p CMDLINE.template ../src/ ../src/heretic/ > $@


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

hexen.cfg.5: ../src default.cfg.template
	./docgen -g hexen -m default.cfg.template \
                 -c default ../src/m_config.c > $@

chocolate-hexen.cfg.5: ../src extra.cfg.template
	./docgen -g hexen -m extra.cfg.template \
                 -c extended ../src/m_config.c > $@

CMDLINE.hexen : ../src ../src/hexen
	./docgen -p CMDLINE.template ../src/ ../src/hexen/ > $@



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

strife.cfg.5: ../src default.cfg.template
	./docgen -g strife -m default.cfg.template \
                 -c default ../src/m_config.c > $@

chocolate-strife.cfg.5: ../src extra.cfg.template
	./docgen -g strife -m extra.cfg.template \
                 -c extended ../src/m_config.c > $@

CMDLINE.strife : ../src ../src/strife
	./docgen -p CMDLINE.template ../src/ ../src/strife/ > $@



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

endif

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