shithub: choc

ref: 52f81b4ef175358d1e1f7f9eecab2a1edb7f4b65
dir: /man/Makefile.am/

View raw version

MANPAGE_GEN_FILES=manpage.template docgen default.cfg.template extra.cfg.template

if HAVE_PYTHON

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

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 > $@

endif

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