Tag
Hash :
878ec9db
Author :
Date :
2012-09-07T14:52:17
Second round of cleanups for LibXML2 docs/examples configure.am: * Explicitly disallow --enable-rebuild-docs when builddir != srcdir, per what you said about needing to build docs with an in-source build doc/Makefile.am: * Ensure that xmlversion.h is in the source tree before running apibuild.py, to avoid generating an incomplete libxml2-api.xml * Update the .PHONY target (forgot to do this earlier) doc/devhelp/Makefile.am: * Wrap the doc-generating rule in an "if REBUILD_DOCS" conditional so it doesn't cause trouble for regular users * Added a handy-dandy "rebuild" target doc/examples/index.py: * NOTE: You need to run this script to regenerate the files it creates, and then commit the newly-updated files! The generated files currently in git master (e.g. doc/examples/Makefile.am) are out of date even before this patch! * index.html really needs to be in EXTRA_DIST * Wrap the doc-generating rules in an "if REBUILD_DOCS" conditional, because they shouldn't be active otherwise
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79
devhelpdir = $(datadir)/gtk-doc/html/libxml2
dist_devhelp_DATA = \
libxml2.devhelp \
$(HTML_FILES) \
$(EXTRA_FORMAT)
HTML_FILES = \
general.html \
index.html \
$(HTML_MODULES)
HTML_MODULES= \
libxml2-c14n.html \
libxml2-catalog.html \
libxml2-chvalid.html \
libxml2-debugXML.html \
libxml2-dict.html \
libxml2-DOCBparser.html \
libxml2-encoding.html \
libxml2-entities.html \
libxml2-globals.html \
libxml2-hash.html \
libxml2-HTMLparser.html \
libxml2-HTMLtree.html \
libxml2-list.html \
libxml2-nanoftp.html \
libxml2-nanohttp.html \
libxml2-parser.html \
libxml2-parserInternals.html \
libxml2-pattern.html \
libxml2-relaxng.html \
libxml2-SAX2.html \
libxml2-SAX.html \
libxml2-schemasInternals.html \
libxml2-schematron.html \
libxml2-threads.html \
libxml2-tree.html \
libxml2-uri.html \
libxml2-valid.html \
libxml2-xinclude.html \
libxml2-xlink.html \
libxml2-xmlautomata.html \
libxml2-xmlerror.html \
libxml2-xmlexports.html \
libxml2-xmlIO.html \
libxml2-xmlmemory.html \
libxml2-xmlmodule.html \
libxml2-xmlreader.html \
libxml2-xmlregexp.html \
libxml2-xmlsave.html \
libxml2-xmlschemas.html \
libxml2-xmlschemastypes.html \
libxml2-xmlstring.html \
libxml2-xmlunicode.html \
libxml2-xmlversion.html \
libxml2-xmlwriter.html \
libxml2-xpath.html \
libxml2-xpathInternals.html \
libxml2-xpointer.html
EXTRA_FORMAT= \
home.png \
left.png \
right.png \
up.png \
style.css
EXTRA_DIST = devhelp.xsl html.xsl
if REBUILD_DOCS
rebuild: libxml2.devhelp $(HTML_FILES)
.PHONY: rebuild
libxml2.devhelp $(HTML_FILES): devhelp.xsl html.xsl $(top_srcdir)/doc/libxml2-api.xml
-@(if [ -x $(XSLTPROC) ] ; then \
echo Rebuilding devhelp files ; \
$(XSLTPROC) --nonet -o $(srcdir)/libxml2.devhelp $(srcdir)/devhelp.xsl $(top_srcdir)/doc/libxml2-api.xml ; fi );
endif