summaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorChristophe Fergeau <cfergeau@redhat.com>2014-03-25 14:08:04 +0100
committerChristophe Fergeau <cfergeau@redhat.com>2014-04-16 16:33:44 +0200
commit37bf7a516353b323a56ceec820930edef9f784f9 (patch)
tree0d1ef0486f53b0aefb00fd2eb8fceb1e562eb032 /docs
parentb9bf6541434cb8fd9f177e6aa45be6eabf19dbe8 (diff)
downloadspice-37bf7a516353b323a56ceec820930edef9f784f9.tar.gz
spice-37bf7a516353b323a56ceec820930edef9f784f9.tar.xz
spice-37bf7a516353b323a56ceec820930edef9f784f9.zip
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.
Diffstat (limited to 'docs')
-rw-r--r--docs/manual/Makefile.am16
1 files changed, 14 insertions, 2 deletions
diff --git a/docs/manual/Makefile.am b/docs/manual/Makefile.am
index f464e7a4..54e33e13 100644
--- a/docs/manual/Makefile.am
+++ b/docs/manual/Makefile.am
@@ -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