* 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>
37 lines
447 B
Makefile
37 lines
447 B
Makefile
AUTOMAKE_OPTIONS = foreign
|
|
|
|
ASCIIDOC_ARGS = \
|
|
-n \
|
|
-a toc \
|
|
-a icons
|
|
|
|
A2X_ARGS = \
|
|
-d manpage \
|
|
-f manpage
|
|
|
|
dist_doc_DATA = \
|
|
manual.html
|
|
|
|
dist_man_MANS = \
|
|
calcurse.1
|
|
|
|
EXTRA_DIST = \
|
|
manual.txt \
|
|
calcurse.1.txt
|
|
|
|
CLEANFILES = \
|
|
manual.html \
|
|
calcurse.1
|
|
|
|
docdir = $(datadir)/doc/$(PACKAGE)
|
|
|
|
.txt.html:
|
|
if HAVE_ASCIIDOC
|
|
$(AM_V_GEN) $(ASCIIDOC) $(ASCIIDOC_ARGS) $<
|
|
endif
|
|
|
|
%.1: %.1.txt
|
|
if HAVE_A2X
|
|
$(AM_V_GEN) $(A2X) $(A2X_ARGS) $<
|
|
endif
|