This should fix all remaining build issues with documentation generation. Finally. The new "--disable-docs" option should be used to skip documentation completely, whereas "--without-asciidoc" can be used if both manual and man page should not be rebuilt. As a consequence, "--without-asciidoc" can only be combined with "--enable-docs" if ready-made documentation already exists in "doc/". This is true for release tarballs (where we include prebuilt documentation for the sake of portability and simplicity), as well as for Git checkouts where the documentation has already been built earlier. Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
41 lines
488 B
Makefile
41 lines
488 B
Makefile
AUTOMAKE_OPTIONS = foreign
|
|
|
|
if HAVE_ASCIIDOC
|
|
ASCIIDOC_ARGS = \
|
|
-n \
|
|
-a toc \
|
|
-a icons
|
|
endif
|
|
|
|
if HAVE_A2X
|
|
A2X_ARGS = \
|
|
-d manpage \
|
|
-f manpage
|
|
endif
|
|
|
|
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
|