summaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@gmail.com>2014-03-14 14:37:44 +0100
committerMarc-André Lureau <marcandre.lureau@gmail.com>2014-03-19 14:01:33 +0100
commite044cfca1e5440c576f2108356971de0b88649dc (patch)
treec996b90ed9e47bb58b4d58a248eb22c5dc4d9876 /docs
parentf8bc446b76420294e10436b26a6c9fb275125a82 (diff)
downloadspice-e044cfca1e5440c576f2108356971de0b88649dc.zip
spice-e044cfca1e5440c576f2108356971de0b88649dc.tar.gz
spice-e044cfca1e5440c576f2108356971de0b88649dc.tar.xz
build-sys: simplify manual html generation
Diffstat (limited to 'docs')
-rw-r--r--docs/manual/Makefile.am44
1 files changed, 18 insertions, 26 deletions
diff --git a/docs/manual/Makefile.am b/docs/manual/Makefile.am
index 75cc4f7..e8856a6 100644
--- a/docs/manual/Makefile.am
+++ b/docs/manual/Makefile.am
@@ -1,38 +1,30 @@
-SUFFIXES = .xml .html .txt .1
+all: html
+.PHONY: html
# apparently, xmlto does not support validation of docbook5 docs
# that's why it's disabled with --skip-validation
-.xml.html:
- $(AM_V_GEN)$(XMLTO) --skip-validation -o html xhtml $<
+XMLTO_FLAGS = --skip-validation
-.xml.1:
- $(AM_V_GEN)$(XMLTO) --skip-validation -o man man $<
+XMLDOC = \
+ SpiceUserManual-Basics.xml \
+ SpiceUserManual-Guest.xml \
+ SpiceUserManual-Installation.xml \
+ SpiceUserManual-Introduction.xml \
+ SpiceUserManual-References.xml \
+ SpiceUserManual.xml \
+ $(NULL)
-.xml.txt:
- $(AM_V_GEN)$(XMLTO) --skip-validation -o txt txt $<
+html-stamp: $(XMLDOC)
+ $(AM_V_GEN)$(XMLTO) $(XMLTO_FLAGS) -o html xhtml $(srcdir)/SpiceUserManual.xml
+ touch $@
-all: allhtml manpages
-
-XMLMAN =
-XMLDOC = \
- SpiceUserManual-Basics.xml \
- SpiceUserManual-Guest.xml \
- SpiceUserManual-Installation.xml \
- SpiceUserManual-Introduction.xml \
- SpiceUserManual-References.xml \
- SpiceUserManual.xml
-XMLALL = $(XMLMAN) $(XMLDOC)
-SOURCES = $(XMLALL) $(TXTDOC)
-
-allhtml: $(XMLALL:.xml=.html)
-
-manpages: $(XMLMAN:.xml=.1)
+html: html-stamp
# Control what goes in the distribution tarball.
# We include all of the XML, and also generated HTML pages
# so people working from the distribution tarball won't need xmlto.
-EXTRA_DIST = $(SOURCES) html
+EXTRA_DIST = $(XMLDOC) html html-stamp
clean-local:
- rm -fr html $(XMLMAN:.xml=.1)
-
+ rm -fr html
+ rm -f *-stamp