calcurse-edge/doc/Makefile.am
Lukas Fleischer 6636232bc7 doc/Makefile.am: Fix "--without-asciidoc"
Do not try to distribute man page and manual files if documentation
generation is disabled.

Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
2011-06-20 19:01:30 +02:00

41 lines
488 B
Makefile

AUTOMAKE_OPTIONS = foreign
if HAVE_ASCIIDOC
ASCIIDOC_ARGS = \
-n \
-a toc \
-a icons
dist_doc_DATA = \
manual.html
endif
if HAVE_A2X
A2X_ARGS = \
-d manpage \
-f manpage
dist_man_MANS = \
calcurse.1
endif
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