1 ## Process this file with automake to produce Makefile.in
2 SUBDIRS = . devhelp examples
4 # The top-level SGML file.
5 DOC_MAIN_XML_FILE=gnome-xml.xml
7 # The directory containing the source code (if it contains documentation).
10 # A file in win32 depends upon one of the doc files
11 WIN32_DIR=$(top_srcdir)/win32
13 PAGES= 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
17 APIPAGES=APIconstructors.html APIfiles.html APIfunctions.html \
18 APIsymbols.html APIchunk0.html
21 EXTRA_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
32 # Expanded form of EXTRA_DIST_wc
65 APIconstructors.html \
73 Libxml2-Logo-180x168.gif \
74 Libxml2-Logo-90x34.gif \
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/libxml-xzlib.html \
182 tutorial/ar01s02.html \
183 tutorial/ar01s03.html \
184 tutorial/ar01s04.html \
185 tutorial/ar01s05.html \
186 tutorial/ar01s06.html \
187 tutorial/ar01s07.html \
188 tutorial/ar01s08.html \
189 tutorial/ar01s09.html \
190 tutorial/images/blank.png \
191 tutorial/images/callouts/1.png \
192 tutorial/images/callouts/10.png \
193 tutorial/images/callouts/2.png \
194 tutorial/images/callouts/3.png \
195 tutorial/images/callouts/4.png \
196 tutorial/images/callouts/5.png \
197 tutorial/images/callouts/6.png \
198 tutorial/images/callouts/7.png \
199 tutorial/images/callouts/8.png \
200 tutorial/images/callouts/9.png \
201 tutorial/images/caution.png \
202 tutorial/images/draft.png \
203 tutorial/images/home.png \
204 tutorial/images/important.png \
205 tutorial/images/next.png \
206 tutorial/images/note.png \
207 tutorial/images/prev.png \
208 tutorial/images/tip.png \
209 tutorial/images/toc-blank.png \
210 tutorial/images/toc-minus.png \
211 tutorial/images/toc-plus.png \
212 tutorial/images/up.png \
213 tutorial/images/warning.png \
214 tutorial/includeaddattribute.c \
215 tutorial/includeaddkeyword.c \
216 tutorial/includeconvert.c \
217 tutorial/includegetattribute.c \
218 tutorial/includekeyword.c \
219 tutorial/includexpath.c \
220 tutorial/index.html \
222 tutorial/xmltutorial.pdf \
228 xmlcatalog_man.html \
239 man_MANS = xmllint.1 xmlcatalog.1
242 docs: web $(top_builddir)/NEWS libxml2.xsa $(man_MANS)
244 api: libxml2-api.xml libxml2-refs.xml $(APIPAGES) $(srcdir)/html/index.html $(WIN32_DIR)/libxml2.def.src ../elfgcchack.h $(srcdir)/site.xsl
248 ../elfgcchack.h: $(srcdir)/elfgcchack.xsl $(srcdir)/libxml2-api.xml
249 -@(if [ -x $(XSLTPROC) ] ; then \
250 echo "Rebuilding the elfgcchack.h header" ; \
251 $(XSLTPROC) --nonet $(srcdir)/elfgcchack.xsl $(srcdir)/libxml2-api.xml > elfgcchack.h ; \
252 if [ "`diff -q elfgcchack.h ../elfgcchack.h`" ] ; then \
253 echo "updating ../elfgcchack.h"; \
254 cp elfgcchack.h ../elfgcchack.h; \
255 fi ; rm -f elfgcchack.h ; fi );
257 $(PAGES): xml.html $(srcdir)/site.xsl
258 -@(if [ -x $(XSLTPROC) ] ; then \
259 echo "Rebuilding the HTML Web pages from xml.html" ; \
260 $(XSLTPROC) --nonet --html --path $(srcdir) $(srcdir)/site.xsl $(srcdir)/xml.html > index.html ; fi );
261 -@(if [ -x $(XMLLINT) ] ; then \
262 echo "Validating the HTML Web pages" ; \
263 $(XMLLINT) --nonet --valid --noout $(PAGES) ; fi );
265 $(top_builddir)/NEWS: $(srcdir)/news.xsl $(srcdir)/news.html
266 -@(if [ -x $(XSLTPROC) ] ; then \
267 $(XSLTPROC) --nonet $(srcdir)/news.xsl $(srcdir)/news.html > $(top_builddir)/NEWS ; fi );
269 libxml2.xsa: $(srcdir)/xsa.xsl $(srcdir)/news.html
270 -@(if [ -x $(XSLTPROC) ] ; then \
271 echo "Rebuilding the NEWS file" ; \
272 $(XSLTPROC) --nonet $(srcdir)/xsa.xsl $(srcdir)/news.html > libxml2.xsa ; fi );
274 $(APIPAGES): libxml2-api.xml libxml2-refs.xml $(srcdir)/site.xsl $(srcdir)/api.xsl
275 -@(if [ -x $(XSLTPROC) ] ; then \
276 echo "Rebuilding the HTML API pages from libxml2-refs.xml" ; \
277 $(XSLTPROC) --nonet --html $(srcdir)/api.xsl \
278 $(srcdir)/xml.html ; fi );
279 -@(if [ -x $(XMLLINT) ] ; then \
280 echo "Validating the HTML API pages" ; \
281 $(XMLLINT) --nonet --valid --noout API*.html ; fi );
283 $(srcdir)/html/index.html: libxml2-api.xml $(srcdir)/newapi.xsl
284 -@(if [ -x $(XSLTPROC) ] ; then \
285 echo "Rebuilding the HTML pages from the XML API" ; \
286 $(XSLTPROC) --nonet $(srcdir)/newapi.xsl $(srcdir)/libxml2-api.xml ; fi )
287 -@(if [ -x $(XMLLINT) ] ; then \
288 echo "Validating the resulting XHTML pages" ; \
289 $(XMLLINT) --nonet --valid --noout html/*.html ; fi );
291 wiki: libxml2-api.xml $(srcdir)/wiki.xsl
292 -@(if [ -x $(XSLTPROC) ] ; then \
293 echo "Rebuilding the wiki HTML pages from the XML API" ; \
294 $(XSLTPROC) --nonet $(srcdir)/wiki.xsl $(srcdir)/libxml2-api.xml; fi )
296 $(WIN32_DIR)/libxml2.def.src: libxml2-api.xml
297 -@(if [ -x $(XSLTPROC) ] ; then \
298 $(XSLTPROC) -o $(WIN32_DIR)/libxml2.def.src \
299 --nonet $(WIN32_DIR)/defgen.xsl libxml2-api.xml ; fi )
302 $(filter-out %/xmlversion.h, $(wildcard $(top_srcdir)/include/libxml/*.h)) \
303 $(top_srcdir)/include/libxml/xmlversion.h.in \
304 $(wildcard $(top_srcdir)/*.c)
306 libxml2-api.xml libxml2-refs.xml ../libxml2.syms: apibuild.py symbols.xml syms.xsl checkapisym.xsl $(source_file_deps)
307 test -f $(top_srcdir)/include/libxml/xmlversion.h
308 (cd $(srcdir) && ./apibuild.py)
309 ($(XSLTPROC) $(srcdir)/checkapisym.xsl $(srcdir)/libxml2-api.xml)
310 ($(XSLTPROC) -o ../libxml2.syms $(srcdir)/syms.xsl $(srcdir)/symbols.xml)
311 -@(cd .. ; $(MAKE) rebuild_testapi)
314 xmllint.1: xmllint.xml
315 -@($(XSLTPROC) --nonet xmllint.xml)
317 xmlcatalog.1: xmlcatalog_man.xml
318 -@($(XSLTPROC) --nonet xmlcatalog_man.xml)
321 for f in $(EXTRA_DIST_wc) ; do echo $$f; done | sort -u >tmp.EXTRA_DIST_wc
322 for f in $(EXTRA_DIST) ; do echo $$f; done | sort >tmp.EXTRA_DIST
323 diff -u tmp.EXTRA_DIST_wc tmp.EXTRA_DIST
324 rm -f tmp.EXTRA_DIST_wc tmp.EXTRA_DIST
328 rm -f *~ *.bak *.hierarchy *.signals *-unused.txt
330 maintainer-clean-local: clean-local
331 rm -rf libxml-decl-list.txt libxml-decl.txt
336 $(MKDIR_P) $(DESTDIR)$(HTML_DIR)
337 -$(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)
338 $(MKDIR_P) $(DESTDIR)$(HTML_DIR)/html
339 -$(INSTALL) -m 0644 $(srcdir)/html/*.html $(DESTDIR)$(HTML_DIR)/html
340 -$(INSTALL) -m 0644 $(srcdir)/html/*.png $(DESTDIR)$(HTML_DIR)/html
341 $(MKDIR_P) $(DESTDIR)$(HTML_DIR)/tutorial
342 -$(INSTALL) -m 0644 $(srcdir)/tutorial/*.* \
343 $(DESTDIR)$(HTML_DIR)/tutorial
344 $(MKDIR_P) $(DESTDIR)$(HTML_DIR)/tutorial/images
345 -$(INSTALL) -m 0644 $(srcdir)/tutorial/images/*.* \
346 $(DESTDIR)$(HTML_DIR)/tutorial/images
347 $(MKDIR_P) $(DESTDIR)$(HTML_DIR)/tutorial/images/callouts
348 -$(INSTALL) -m 0644 $(srcdir)/tutorial/images/callouts/*.* \
349 $(DESTDIR)$(HTML_DIR)/tutorial/images/callouts
351 .PHONY: docs api web wiki rebuild