mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice
synced 2026-01-05 11:09:07 +00:00
doc: Generate chunked manual
This commit makes use of a2x in order to generate a chunked manual in addition to the "all in one page" one.
This commit is contained in:
parent
b9bf654143
commit
37bf7a5163
@ -425,9 +425,14 @@ if test "x$enable_manual" != "xno"; then
|
||||
AC_PATH_PROG([ASCIIDOC], [asciidoc])
|
||||
AS_IF([test -z "$ASCIIDOC" && test "x$enable_manual" = "xyes"],
|
||||
[AC_MSG_ERROR([asciidoc is missing and build of manual was requested])])
|
||||
AC_PATH_PROG([A2X], [a2x])
|
||||
AS_IF([test -z "$A2X" && test "x$enable_manual" = "xyes"],
|
||||
[AC_MSG_ERROR([a2x is missing and build of manual was requested])])
|
||||
fi
|
||||
AS_IF([test -n "$ASCIIDOC"], [have_asciidoc=yes], [have_asciidoc=no])
|
||||
AM_CONDITIONAL([BUILD_MANUAL], [test -n "$ASCIIDOC"])
|
||||
AM_CONDITIONAL([BUILD_MANUAL], [test -n "$ASCIIDOC" || test -n "$A2X"])
|
||||
AM_CONDITIONAL([BUILD_HTML_MANUAL], [test -n "$ASCIIDOC"])
|
||||
AM_CONDITIONAL([BUILD_CHUNKED_MANUAL], [test -n "$A2X"])
|
||||
|
||||
|
||||
dnl ===========================================================================
|
||||
|
||||
@ -7,13 +7,25 @@ EXTRA_DIST = \
|
||||
images/icons/*.png \
|
||||
images/spicec01.png \
|
||||
manual.html \
|
||||
manual.chunked \
|
||||
manual.txt \
|
||||
$(NULL)
|
||||
|
||||
.txt.html:
|
||||
$(AM_V_GEN) $(ASCIIDOC) $(ASCIIDOC_FLAGS) $<
|
||||
|
||||
all-local: manual.html
|
||||
manual.chunked: manual.txt
|
||||
$(AM_V_GEN) $(A2X) -f chunked -D $(builddir) $(ASCIIDOC_FLAGS) $<
|
||||
|
||||
docfiles =
|
||||
if BUILD_HTML_MANUAL
|
||||
docfiles += manual.html
|
||||
endif
|
||||
if BUILD_CHUNKED_MANUAL
|
||||
docfiles += manual.chunked
|
||||
endif
|
||||
|
||||
all-local: $(docfiles)
|
||||
|
||||
clean-local:
|
||||
rm manual.html
|
||||
rm -rf manual.chunked
|
||||
|
||||
Loading…
Reference in New Issue
Block a user