Documentation Makefile overhaul.

* Add documentation input and output files to distribution tarballs.

* Use a more generic rule to generate man pages instead of the hardcoded
  "calcurse.1" target.

Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
This commit is contained in:
Lukas Fleischer 2011-04-18 19:25:28 +02:00
parent c5e4187590
commit 371f20e631

View File

@ -9,10 +9,18 @@ A2X_ARGS = \
-d manpage \ -d manpage \
-f manpage -f manpage
doc_DATA = \ dist_doc_DATA = \
manual.html manual.html
man_MANS = \ dist_man_MANS = \
calcurse.1
EXTRA_DIST = \
manual.txt \
calcurse.1.txt
CLEANFILES = \
manual.html \
calcurse.1 calcurse.1
docdir = $(datadir)/doc/$(PACKAGE) docdir = $(datadir)/doc/$(PACKAGE)
@ -22,7 +30,7 @@ if HAVE_ASCIIDOC
$(AM_V_GEN) $(ASCIIDOC) $(ASCIIDOC_ARGS) $< $(AM_V_GEN) $(ASCIIDOC) $(ASCIIDOC_ARGS) $<
endif endif
calcurse.1: calcurse.1.txt %.1: %.1.txt
if HAVE_A2X if HAVE_A2X
$(AM_V_GEN) $(A2X) $(A2X_ARGS) $< $(AM_V_GEN) $(A2X) $(A2X_ARGS) $<
endif endif