summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Taylor <rob.taylor@codethink.co.uk>2007-09-04 14:46:48 +0100
committerRob Taylor <rob.taylor@codethink.co.uk>2007-09-04 14:46:48 +0100
commit437a86a4b18a2be033225432fd099bcb7f0c3114 (patch)
tree8dc6f4b16911270a36ac4cec5151ac88bf5667b7
parentb5f76d26d2e94f9279b03b56aaf20038cd853cdd (diff)
don't try to distribute index.html if we can't build it.
Makes dist and install of index.html dependant on docbook-doc being enabled.
-rw-r--r--docs/Makefile.am24
1 files changed, 13 insertions, 11 deletions
diff --git a/docs/Makefile.am b/docs/Makefile.am
index c3d3800..0b6cca2 100644
--- a/docs/Makefile.am
+++ b/docs/Makefile.am
@@ -21,15 +21,6 @@ SPEC_XML_FILES = \
SPEC_HTML_FILES = \
index.html
-htmldocdir = $(docdir)
-htmldoc_DATA = index.html
-
-if DOCBOOK_DOCS_ENABLED
-
-index.html : introduction.xml
- $(XMLTO) html-nochunks -m config.xsl index.xml
-endif # DOCBOOK_DOCS_ENABLED
-
clean-local:
rm -f *~
rm -f *.html
@@ -39,5 +30,16 @@ EXTRA_DIST = \
config.xsl \
docbook.css \
$(SPEC_XML_FILES) \
- $(IMAGE_FILES) \
- $(SPEC_HTML_FILES)
+ $(IMAGE_FILES)
+
+if DOCBOOK_DOCS_ENABLED
+
+htmldocdir = $(docdir)
+htmldoc_DATA = index.html
+
+index.html : introduction.xml
+ $(XMLTO) html-nochunks -m config.xsl index.xml
+
+EXTRA_DIST += $(SPEC_HTML_FILES)
+
+endif #DOCBOOK_DOCS_ENABLED