1## Process this file with automake to produce Makefile.in 2SUBDIRS = . devhelp examples 3 4# The top-level SGML file. 5DOC_MAIN_XML_FILE=gnome-xml.xml 6 7# The directory containing the source code (if it contains documentation). 8DOC_SOURCE_DIR=.. 9 10# A file in win32 depends upon one of the doc files 11WIN32_DIR=$(top_srcdir)/win32 12 13PAGES= architecture.html bugs.html contribs.html docs.html DOM.html \ 14 downloads.html entities.html example.html help.html index.html \ 15 interface.html intro.html library.html namespaces.html news.html \ 16 tree.html xmldtd.html XMLinfo.html XSLT.html 17APIPAGES=APIconstructors.html APIfiles.html APIfunctions.html \ 18 APIsymbols.html APIchunk0.html 19 20if REBUILD_DOCS 21EXTRA_DIST_wc = xmlcatalog_man.xml $(wildcard tutorial/*.html) \ 22 $(wildcard tutorial/*.c) $(wildcard tutorial/*.pdf) \ 23 $(wildcard tutorial/images/*.png) \ 24 $(wildcard tutorial/images/callouts/*.png) $(wildcard API*.html) \ 25 $(wildcard *.1) $(wildcard *.xsl) $(wildcard *.html) \ 26 $(wildcard *.gif) w3c.png $(wildcard html/*.html) \ 27 $(wildcard html/*.png) libxml2-api.xml index.py search.php \ 28 apibuild.py libxml2.xsa xmllint.xml xmlcatalog_man.xml \ 29 symbols.xml 30endif 31 32# Expanded form of EXTRA_DIST_wc 33# 34EXTRA_DIST = \ 35 APIchunk0.html \ 36 APIchunk1.html \ 37 APIchunk2.html \ 38 APIchunk3.html \ 39 APIchunk4.html \ 40 APIchunk5.html \ 41 APIchunk6.html \ 42 APIchunk7.html \ 43 APIchunk8.html \ 44 APIchunk9.html \ 45 APIchunk10.html \ 46 APIchunk11.html \ 47 APIchunk12.html \ 48 APIchunk13.html \ 49 APIchunk14.html \ 50 APIchunk15.html \ 51 APIchunk16.html \ 52 APIchunk17.html \ 53 APIchunk18.html \ 54 APIchunk19.html \ 55 APIchunk20.html \ 56 APIchunk21.html \ 57 APIchunk22.html \ 58 APIchunk23.html \ 59 APIchunk24.html \ 60 APIchunk25.html \ 61 APIchunk26.html \ 62 APIchunk27.html \ 63 APIchunk28.html \ 64 APIchunk29.html \ 65 APIconstructors.html \ 66 APIfiles.html \ 67 APIfunctions.html \ 68 APIsymbols.html \ 69 DOM.gif \ 70 DOM.html \ 71 FAQ.html \ 72 Libxml2-Logo-180x168.gif \ 73 Libxml2-Logo-90x34.gif \ 74 XMLinfo.html \ 75 XSLT.html \ 76 api.xsl \ 77 apibuild.py \ 78 architecture.html \ 79 bugs.html \ 80 catalog.gif \ 81 catalog.html \ 82 checkapisym.xsl \ 83 contribs.html \ 84 docs.html \ 85 downloads.html \ 86 elfgcchack.xsl \ 87 encoding.html \ 88 entities.html \ 89 example.html \ 90 guidelines.html \ 91 help.html \ 92 html/book1.html \ 93 html/home.png \ 94 html/index.html \ 95 html/left.png \ 96 html/libxml-DOCBparser.html \ 97 html/libxml-HTMLparser.html \ 98 html/libxml-HTMLtree.html \ 99 html/libxml-SAX.html \ 100 html/libxml-SAX2.html \ 101 html/libxml-c14n.html \ 102 html/libxml-catalog.html \ 103 html/libxml-chvalid.html \ 104 html/libxml-debugXML.html \ 105 html/libxml-dict.html \ 106 html/libxml-encoding.html \ 107 html/libxml-entities.html \ 108 html/libxml-globals.html \ 109 html/libxml-hash.html \ 110 html/libxml-lib.html \ 111 html/libxml-list.html \ 112 html/libxml-nanoftp.html \ 113 html/libxml-nanohttp.html \ 114 html/libxml-parser.html \ 115 html/libxml-parserInternals.html \ 116 html/libxml-pattern.html \ 117 html/libxml-relaxng.html \ 118 html/libxml-schemasInternals.html \ 119 html/libxml-schematron.html \ 120 html/libxml-threads.html \ 121 html/libxml-tree.html \ 122 html/libxml-uri.html \ 123 html/libxml-valid.html \ 124 html/libxml-xinclude.html \ 125 html/libxml-xlink.html \ 126 html/libxml-xmlIO.html \ 127 html/libxml-xmlautomata.html \ 128 html/libxml-xmlerror.html \ 129 html/libxml-xmlexports.html \ 130 html/libxml-xmlmemory.html \ 131 html/libxml-xmlmodule.html \ 132 html/libxml-xmlreader.html \ 133 html/libxml-xmlregexp.html \ 134 html/libxml-xmlsave.html \ 135 html/libxml-xmlschemas.html \ 136 html/libxml-xmlschemastypes.html \ 137 html/libxml-xmlstring.html \ 138 html/libxml-xmlunicode.html \ 139 html/libxml-xmlversion.html \ 140 html/libxml-xmlwriter.html \ 141 html/libxml-xpath.html \ 142 html/libxml-xpathInternals.html \ 143 html/libxml-xpointer.html \ 144 html/right.png \ 145 html/up.png \ 146 index.html \ 147 index.py \ 148 interface.html \ 149 intro.html \ 150 library.html \ 151 libxml.gif \ 152 libxml2-api.xml \ 153 libxml2.xsa \ 154 namespaces.html \ 155 newapi.xsl \ 156 news.html \ 157 news.xsl \ 158 python.html \ 159 redhat.gif \ 160 search.php \ 161 searches.html \ 162 searches.xsl \ 163 site.xsl \ 164 smallfootonly.gif \ 165 structure.gif \ 166 symbols.xml \ 167 syms.xsl \ 168 threads.html \ 169 tree.html \ 170 tutorial/apa.html \ 171 tutorial/apb.html \ 172 tutorial/apc.html \ 173 tutorial/apd.html \ 174 tutorial/ape.html \ 175 tutorial/apf.html \ 176 tutorial/apg.html \ 177 tutorial/aph.html \ 178 tutorial/api.html \ 179 tutorial/ar01s02.html \ 180 tutorial/ar01s03.html \ 181 tutorial/ar01s04.html \ 182 tutorial/ar01s05.html \ 183 tutorial/ar01s06.html \ 184 tutorial/ar01s07.html \ 185 tutorial/ar01s08.html \ 186 tutorial/ar01s09.html \ 187 tutorial/images/blank.png \ 188 tutorial/images/callouts/1.png \ 189 tutorial/images/callouts/10.png \ 190 tutorial/images/callouts/2.png \ 191 tutorial/images/callouts/3.png \ 192 tutorial/images/callouts/4.png \ 193 tutorial/images/callouts/5.png \ 194 tutorial/images/callouts/6.png \ 195 tutorial/images/callouts/7.png \ 196 tutorial/images/callouts/8.png \ 197 tutorial/images/callouts/9.png \ 198 tutorial/images/caution.png \ 199 tutorial/images/draft.png \ 200 tutorial/images/home.png \ 201 tutorial/images/important.png \ 202 tutorial/images/next.png \ 203 tutorial/images/note.png \ 204 tutorial/images/prev.png \ 205 tutorial/images/tip.png \ 206 tutorial/images/toc-blank.png \ 207 tutorial/images/toc-minus.png \ 208 tutorial/images/toc-plus.png \ 209 tutorial/images/up.png \ 210 tutorial/images/warning.png \ 211 tutorial/includeaddattribute.c \ 212 tutorial/includeaddkeyword.c \ 213 tutorial/includeconvert.c \ 214 tutorial/includegetattribute.c \ 215 tutorial/includekeyword.c \ 216 tutorial/includexpath.c \ 217 tutorial/index.html \ 218 tutorial/ix01.html \ 219 upgrade.html \ 220 w3c.png \ 221 wiki.xsl \ 222 xml.html \ 223 xmlcatalog.1 \ 224 xmlcatalog_man.html \ 225 xmlcatalog_man.xml \ 226 xmldtd.html \ 227 xmlio.html \ 228 xmllint.1 \ 229 xmllint.html \ 230 xmllint.xml \ 231 xmlmem.html \ 232 xmlreader.html \ 233 xsa.xsl 234 235man_MANS = xmllint.1 xmlcatalog.1 236 237if REBUILD_DOCS 238docs: web $(top_builddir)/NEWS libxml2.xsa $(man_MANS) 239 240api: libxml2-api.xml libxml2-refs.xml $(APIPAGES) $(srcdir)/html/index.html $(WIN32_DIR)/libxml2.def.src ../elfgcchack.h $(srcdir)/site.xsl 241 242web: $(PAGES) xmllint.html xmlcatalog_man.html 243 244../elfgcchack.h: $(srcdir)/elfgcchack.xsl $(srcdir)/libxml2-api.xml 245 -@(if [ -x $(XSLTPROC) ] ; then \ 246 echo "Rebuilding the elfgcchack.h header" ; \ 247 $(XSLTPROC) --nonet $(srcdir)/elfgcchack.xsl $(srcdir)/libxml2-api.xml > elfgcchack.h ; \ 248 if [ "`diff -q elfgcchack.h ../elfgcchack.h`" ] ; then \ 249 echo "updating ../elfgcchack.h"; \ 250 cp elfgcchack.h ../elfgcchack.h; \ 251 fi ; rm -f elfgcchack.h ; fi ); 252 253$(PAGES): xml.html $(srcdir)/site.xsl 254 -@(if [ -x $(XSLTPROC) ] ; then \ 255 echo "Rebuilding the HTML Web pages from xml.html" ; \ 256 $(XSLTPROC) --nonet --html --path $(srcdir) $(srcdir)/site.xsl $(srcdir)/xml.html > index.html ; fi ); 257 -@(if [ -x $(XMLLINT) ] ; then \ 258 echo "Validating the HTML Web pages" ; \ 259 $(XMLLINT) --nonet --valid --noout $(PAGES) ; fi ); 260 261$(top_builddir)/NEWS: $(srcdir)/news.xsl $(srcdir)/news.html 262 -@(if [ -x $(XSLTPROC) ] ; then \ 263 $(XSLTPROC) --nonet $(srcdir)/news.xsl $(srcdir)/news.html > $(top_builddir)/NEWS ; fi ); 264 265libxml2.xsa: $(srcdir)/xsa.xsl $(srcdir)/news.html 266 -@(if [ -x $(XSLTPROC) ] ; then \ 267 echo "Rebuilding the NEWS file" ; \ 268 $(XSLTPROC) --nonet $(srcdir)/xsa.xsl $(srcdir)/news.html > libxml2.xsa ; fi ); 269 270$(APIPAGES): libxml2-api.xml libxml2-refs.xml $(srcdir)/site.xsl $(srcdir)/api.xsl 271 -@(if [ -x $(XSLTPROC) ] ; then \ 272 echo "Rebuilding the HTML API pages from libxml2-refs.xml" ; \ 273 $(XSLTPROC) --nonet --html $(srcdir)/api.xsl \ 274 $(srcdir)/xml.html ; fi ); 275 -@(if [ -x $(XMLLINT) ] ; then \ 276 echo "Validating the HTML API pages" ; \ 277 $(XMLLINT) --nonet --valid --noout API*.html ; fi ); 278 279$(srcdir)/html/index.html: libxml2-api.xml $(srcdir)/newapi.xsl 280 -@(if [ -x $(XSLTPROC) ] ; then \ 281 echo "Rebuilding the HTML pages from the XML API" ; \ 282 $(XSLTPROC) --nonet $(srcdir)/newapi.xsl $(srcdir)/libxml2-api.xml ; fi ) 283 -@(if [ -x $(XMLLINT) ] ; then \ 284 echo "Validating the resulting XHTML pages" ; \ 285 $(XMLLINT) --nonet --valid --noout html/*.html ; fi ); 286 287wiki: libxml2-api.xml $(srcdir)/wiki.xsl 288 -@(if [ -x $(XSLTPROC) ] ; then \ 289 echo "Rebuilding the wiki HTML pages from the XML API" ; \ 290 $(XSLTPROC) --nonet $(srcdir)/wiki.xsl $(srcdir)/libxml2-api.xml; fi ) 291 292$(WIN32_DIR)/libxml2.def.src: libxml2-api.xml 293 -@(if [ -x $(XSLTPROC) ] ; then \ 294 $(XSLTPROC) -o $(WIN32_DIR)/libxml2.def.src \ 295 --nonet $(WIN32_DIR)/defgen.xsl libxml2-api.xml ; fi ) 296 297source_file_deps = \ 298 $(filter-out %/xmlversion.h, $(wildcard $(top_srcdir)/include/libxml/*.h)) \ 299 $(top_srcdir)/include/libxml/xmlversion.h.in \ 300 $(wildcard $(top_srcdir)/*.c) 301 302libxml2-api.xml libxml2-refs.xml ../libxml2.syms: apibuild.py symbols.xml syms.xsl checkapisym.xsl $(source_file_deps) 303 test -f $(top_srcdir)/include/libxml/xmlversion.h 304 (cd $(srcdir) && ./apibuild.py) 305 ($(XSLTPROC) $(srcdir)/checkapisym.xsl $(srcdir)/libxml2-api.xml) 306 ($(XSLTPROC) -o ../libxml2.syms $(srcdir)/syms.xsl $(srcdir)/symbols.xml) 307 -@(cd .. ; $(MAKE) rebuild_testapi) 308 309 310xmllint.1: xmllint.xml 311 -@($(XSLTPROC) --nonet xmllint.xml) 312 313xmllint.html: xmllint.xml 314 -@($(XSLTPROC) --nonet -o $@ http://docbook.sourceforge.net/release/xsl/current/html/docbook.xsl xmllint.xml) 315 316xmlcatalog.1: xmlcatalog_man.xml 317 -@($(XSLTPROC) --nonet xmlcatalog_man.xml) 318 319xmlcatalog_man.html: xmlcatalog_man.xml 320 -@($(XSLTPROC) --nonet -o $@ http://docbook.sourceforge.net/release/xsl/current/html/docbook.xsl xmlcatalog_man.xml) 321 322check-extra-dist: 323 for f in $(EXTRA_DIST_wc) ; do echo $$f; done | sort -u >tmp.EXTRA_DIST_wc 324 for f in $(EXTRA_DIST) ; do echo $$f; done | sort >tmp.EXTRA_DIST 325 diff -u tmp.EXTRA_DIST_wc tmp.EXTRA_DIST 326 rm -f tmp.EXTRA_DIST_wc tmp.EXTRA_DIST 327endif 328 329clean-local: 330 rm -f *~ *.bak *.hierarchy *.signals *-unused.txt 331 332maintainer-clean-local: clean-local 333 rm -rf libxml-decl-list.txt libxml-decl.txt 334 335rebuild: api docs 336 337install-data-local: 338 $(MKDIR_P) $(DESTDIR)$(HTML_DIR) 339 -$(INSTALL) -m 0644 $(srcdir)/xml.html $(srcdir)/encoding.html $(srcdir)/FAQ.html $(srcdir)/structure.gif $(srcdir)/DOM.gif $(srcdir)/smallfootonly.gif $(srcdir)/redhat.gif $(srcdir)/libxml.gif $(srcdir)/w3c.png $(srcdir)/Libxml2-Logo-180x168.gif $(srcdir)/Libxml2-Logo-90x34.gif $(DESTDIR)$(HTML_DIR) 340 $(MKDIR_P) $(DESTDIR)$(HTML_DIR)/html 341 -$(INSTALL) -m 0644 $(srcdir)/html/*.html $(DESTDIR)$(HTML_DIR)/html 342 -$(INSTALL) -m 0644 $(srcdir)/html/*.png $(DESTDIR)$(HTML_DIR)/html 343 $(MKDIR_P) $(DESTDIR)$(HTML_DIR)/tutorial 344 -$(INSTALL) -m 0644 $(srcdir)/tutorial/*.* \ 345 $(DESTDIR)$(HTML_DIR)/tutorial 346 $(MKDIR_P) $(DESTDIR)$(HTML_DIR)/tutorial/images 347 -$(INSTALL) -m 0644 $(srcdir)/tutorial/images/*.* \ 348 $(DESTDIR)$(HTML_DIR)/tutorial/images 349 $(MKDIR_P) $(DESTDIR)$(HTML_DIR)/tutorial/images/callouts 350 -$(INSTALL) -m 0644 $(srcdir)/tutorial/images/callouts/*.* \ 351 $(DESTDIR)$(HTML_DIR)/tutorial/images/callouts 352 353.PHONY: docs api web wiki rebuild 354