Makefile.am revision 5706b6d8767e3c3f2e5b277b54e1af68035bc111
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 README.docs 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 ChangeLog.xsl \ 70 DOM.gif \ 71 DOM.html \ 72 FAQ.html \ 73 Libxml2-Logo-180x168.gif \ 74 Libxml2-Logo-90x34.gif \ 75 README.docs \ 76 XMLinfo.html \ 77 XSLT.html \ 78 api.xsl \ 79 apibuild.py \ 80 architecture.html \ 81 bugs.html \ 82 catalog.gif \ 83 catalog.html \ 84 checkapisym.xsl \ 85 contribs.html \ 86 docs.html \ 87 downloads.html \ 88 elfgcchack.xsl \ 89 encoding.html \ 90 entities.html \ 91 example.html \ 92 guidelines.html \ 93 help.html \ 94 html/book1.html \ 95 html/home.png \ 96 html/index.html \ 97 html/left.png \ 98 html/libxml-DOCBparser.html \ 99 html/libxml-HTMLparser.html \ 100 html/libxml-HTMLtree.html \ 101 html/libxml-SAX.html \ 102 html/libxml-SAX2.html \ 103 html/libxml-c14n.html \ 104 html/libxml-catalog.html \ 105 html/libxml-chvalid.html \ 106 html/libxml-debugXML.html \ 107 html/libxml-dict.html \ 108 html/libxml-encoding.html \ 109 html/libxml-entities.html \ 110 html/libxml-globals.html \ 111 html/libxml-hash.html \ 112 html/libxml-lib.html \ 113 html/libxml-list.html \ 114 html/libxml-nanoftp.html \ 115 html/libxml-nanohttp.html \ 116 html/libxml-parser.html \ 117 html/libxml-parserInternals.html \ 118 html/libxml-pattern.html \ 119 html/libxml-relaxng.html \ 120 html/libxml-schemasInternals.html \ 121 html/libxml-schematron.html \ 122 html/libxml-threads.html \ 123 html/libxml-tree.html \ 124 html/libxml-uri.html \ 125 html/libxml-valid.html \ 126 html/libxml-xinclude.html \ 127 html/libxml-xlink.html \ 128 html/libxml-xmlIO.html \ 129 html/libxml-xmlautomata.html \ 130 html/libxml-xmlerror.html \ 131 html/libxml-xmlexports.html \ 132 html/libxml-xmlmemory.html \ 133 html/libxml-xmlmodule.html \ 134 html/libxml-xmlreader.html \ 135 html/libxml-xmlregexp.html \ 136 html/libxml-xmlsave.html \ 137 html/libxml-xmlschemas.html \ 138 html/libxml-xmlschemastypes.html \ 139 html/libxml-xmlstring.html \ 140 html/libxml-xmlunicode.html \ 141 html/libxml-xmlversion.html \ 142 html/libxml-xmlwriter.html \ 143 html/libxml-xpath.html \ 144 html/libxml-xpathInternals.html \ 145 html/libxml-xpointer.html \ 146 html/right.png \ 147 html/up.png \ 148 index.html \ 149 index.py \ 150 interface.html \ 151 intro.html \ 152 library.html \ 153 libxml.gif \ 154 libxml2-api.xml \ 155 libxml2.xsa \ 156 namespaces.html \ 157 newapi.xsl \ 158 news.html \ 159 news.xsl \ 160 python.html \ 161 redhat.gif \ 162 search.php \ 163 searches.html \ 164 searches.xsl \ 165 site.xsl \ 166 smallfootonly.gif \ 167 structure.gif \ 168 symbols.xml \ 169 syms.xsl \ 170 threads.html \ 171 tree.html \ 172 tutorial/apa.html \ 173 tutorial/apb.html \ 174 tutorial/apc.html \ 175 tutorial/apd.html \ 176 tutorial/ape.html \ 177 tutorial/apf.html \ 178 tutorial/apg.html \ 179 tutorial/aph.html \ 180 tutorial/api.html \ 181 tutorial/ar01s02.html \ 182 tutorial/ar01s03.html \ 183 tutorial/ar01s04.html \ 184 tutorial/ar01s05.html \ 185 tutorial/ar01s06.html \ 186 tutorial/ar01s07.html \ 187 tutorial/ar01s08.html \ 188 tutorial/ar01s09.html \ 189 tutorial/images/blank.png \ 190 tutorial/images/callouts/1.png \ 191 tutorial/images/callouts/10.png \ 192 tutorial/images/callouts/2.png \ 193 tutorial/images/callouts/3.png \ 194 tutorial/images/callouts/4.png \ 195 tutorial/images/callouts/5.png \ 196 tutorial/images/callouts/6.png \ 197 tutorial/images/callouts/7.png \ 198 tutorial/images/callouts/8.png \ 199 tutorial/images/callouts/9.png \ 200 tutorial/images/caution.png \ 201 tutorial/images/draft.png \ 202 tutorial/images/home.png \ 203 tutorial/images/important.png \ 204 tutorial/images/next.png \ 205 tutorial/images/note.png \ 206 tutorial/images/prev.png \ 207 tutorial/images/tip.png \ 208 tutorial/images/toc-blank.png \ 209 tutorial/images/toc-minus.png \ 210 tutorial/images/toc-plus.png \ 211 tutorial/images/up.png \ 212 tutorial/images/warning.png \ 213 tutorial/includeaddattribute.c \ 214 tutorial/includeaddkeyword.c \ 215 tutorial/includeconvert.c \ 216 tutorial/includegetattribute.c \ 217 tutorial/includekeyword.c \ 218 tutorial/includexpath.c \ 219 tutorial/index.html \ 220 tutorial/ix01.html \ 221 tutorial/xmltutorial.pdf \ 222 upgrade.html \ 223 w3c.png \ 224 wiki.xsl \ 225 xml.html \ 226 xmlcatalog.1 \ 227 xmlcatalog_man.html \ 228 xmlcatalog_man.xml \ 229 xmldtd.html \ 230 xmlio.html \ 231 xmllint.1 \ 232 xmllint.html \ 233 xmllint.xml \ 234 xmlmem.html \ 235 xmlreader.html \ 236 xsa.xsl 237 238man_MANS = xmllint.1 xmlcatalog.1 239 240if REBUILD_DOCS 241docs: web $(top_builddir)/NEWS libxml2.xsa $(man_MANS) 242 243api: libxml2-api.xml libxml2-refs.xml $(APIPAGES) $(srcdir)/html/index.html $(WIN32_DIR)/libxml2.def.src ../elfgcchack.h $(srcdir)/site.xsl 244 245web: $(PAGES) 246 247../elfgcchack.h: $(srcdir)/elfgcchack.xsl $(srcdir)/libxml2-api.xml 248 -@(if [ -x $(XSLTPROC) ] ; then \ 249 echo "Rebuilding the elfgcchack.h header" ; \ 250 $(XSLTPROC) --nonet $(srcdir)/elfgcchack.xsl $(srcdir)/libxml2-api.xml > elfgcchack.h ; \ 251 if [ "`diff -q elfgcchack.h ../elfgcchack.h`" ] ; then \ 252 echo "updating ../elfgcchack.h"; \ 253 cp elfgcchack.h ../elfgcchack.h; \ 254 fi ; rm -f elfgcchack.h ; fi ); 255 256$(PAGES): xml.html $(srcdir)/site.xsl 257 -@(if [ -x $(XSLTPROC) ] ; then \ 258 echo "Rebuilding the HTML Web pages from xml.html" ; \ 259 $(XSLTPROC) --nonet --html $(top_srcdir)/doc/site.xsl $(top_srcdir)/doc/xml.html > index.html ; fi ); 260 -@(if [ -x $(XMLLINT) ] ; then \ 261 echo "Validating the HTML Web pages" ; \ 262 $(XMLLINT) --nonet --valid --noout $(PAGES) ; fi ); 263 264$(top_builddir)/NEWS: $(top_srcdir)/doc/news.xsl $(top_srcdir)/doc/news.html 265 -@(if [ -x $(XSLTPROC) ] ; then \ 266 $(XSLTPROC) --nonet $(top_srcdir)/doc/news.xsl $(top_srcdir)/doc/news.html > $(top_builddir)/NEWS ; fi ); 267 268libxml2.xsa: $(top_srcdir)/doc/xsa.xsl $(top_srcdir)/doc/news.html 269 -@(if [ -x $(XSLTPROC) ] ; then \ 270 echo "Rebuilding the NEWS file" ; \ 271 $(XSLTPROC) --nonet $(top_srcdir)/doc/xsa.xsl $(top_srcdir)/doc/news.html > libxml2.xsa ; fi ); 272 273$(APIPAGES): libxml2-api.xml libxml2-refs.xml $(top_srcdir)/doc/site.xsl $(top_srcdir)/doc/api.xsl 274 -@(if [ -x $(XSLTPROC) ] ; then \ 275 echo "Rebuilding the HTML API pages from libxml2-refs.xml" ; \ 276 $(XSLTPROC) --nonet --html $(top_srcdir)/doc/api.xsl \ 277 $(top_srcdir)/doc/xml.html ; fi ); 278 -@(if [ -x $(XMLLINT) ] ; then \ 279 echo "Validating the HTML API pages" ; \ 280 $(XMLLINT) --nonet --valid --noout API*.html ; fi ); 281 282$(srcdir)/html/index.html: libxml2-api.xml $(srcdir)/newapi.xsl 283 -@(if [ -x $(XSLTPROC) ] ; then \ 284 echo "Rebuilding the HTML pages from the XML API" ; \ 285 $(XSLTPROC) --nonet $(srcdir)/newapi.xsl libxml2-api.xml ; fi ) 286 -@(if [ -x $(XMLLINT) ] ; then \ 287 echo "Validating the resulting XHTML pages" ; \ 288 $(XMLLINT) --nonet --valid --noout html/*.html ; fi ); 289 290wiki: libxml2-api.xml $(srcdir)/wiki.xsl 291 -@(if [ -x $(XSLTPROC) ] ; then \ 292 echo "Rebuilding the wiki HTML pages from the XML API" ; \ 293 $(XSLTPROC) --nonet $(srcdir)/wiki.xsl libxml2-api.xml; fi ) 294 295$(WIN32_DIR)/libxml2.def.src: libxml2-api.xml 296 -@(if [ -x $(XSLTPROC) ] ; then \ 297 $(XSLTPROC) -o $(WIN32_DIR)/libxml2.def.src \ 298 --nonet $(WIN32_DIR)/defgen.xsl libxml2-api.xml ; fi ) 299 300libxml2-api.xml libxml2-refs.xml ../libxml2.syms: apibuild.py symbols.xml syms.xsl checkapisym.xsl $(wildcard $(top_srcdir)/include/libxml/*.h) $(wildcard $(top_srcdir)/*.c) 301 -($(srcdir)/apibuild.py) 302 ($(XSLTPROC) $(srcdir)/checkapisym.xsl $(srcdir)/libxml2-api.xml) 303 ($(XSLTPROC) -o ../libxml2.syms $(srcdir)/syms.xsl $(srcdir)/symbols.xml) 304 -@(cd .. ; $(MAKE) rebuild_testapi) 305 306 307xmllint.1: xmllint.xml 308 -@($(XSLTPROC) --nonet xmllint.xml) 309 310xmlcatalog.1: xmlcatalog_man.xml 311 -@($(XSLTPROC) --nonet xmlcatalog_man.xml) 312 313check-extra-dist: 314 for f in $(EXTRA_DIST_wc) ; do echo $$f; done | sort -u >tmp.EXTRA_DIST_wc 315 for f in $(EXTRA_DIST) ; do echo $$f; done | sort >tmp.EXTRA_DIST 316 diff -u tmp.EXTRA_DIST_wc tmp.EXTRA_DIST 317 rm -f tmp.EXTRA_DIST_wc tmp.EXTRA_DIST 318endif 319 320clean-local: 321 rm -f *~ *.bak *.hierarchy *.signals *-unused.txt 322 323maintainer-clean-local: clean-local 324 rm -rf libxml-decl-list.txt libxml-decl.txt 325 326rebuild: api docs 327 328install-data-local: 329 $(MKDIR_P) $(DESTDIR)$(HTML_DIR) 330 -$(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) 331 $(MKDIR_P) $(DESTDIR)$(HTML_DIR)/html 332 -$(INSTALL) -m 0644 $(srcdir)/html/*.html $(DESTDIR)$(HTML_DIR)/html 333 -$(INSTALL) -m 0644 $(srcdir)/html/*.png $(DESTDIR)$(HTML_DIR)/html 334 $(MKDIR_P) $(DESTDIR)$(HTML_DIR)/tutorial 335 -$(INSTALL) -m 0644 $(srcdir)/tutorial/*.* \ 336 $(DESTDIR)$(HTML_DIR)/tutorial 337 $(MKDIR_P) $(DESTDIR)$(HTML_DIR)/tutorial/images 338 -$(INSTALL) -m 0644 $(srcdir)/tutorial/images/*.* \ 339 $(DESTDIR)$(HTML_DIR)/tutorial/images 340 $(MKDIR_P) $(DESTDIR)$(HTML_DIR)/tutorial/images/callouts 341 -$(INSTALL) -m 0644 $(srcdir)/tutorial/images/callouts/*.* \ 342 $(DESTDIR)$(HTML_DIR)/tutorial/images/callouts 343 344.PHONY : html xml templates scan 345