blob: e4b60a65d54c65cd596c78320661457fb29c76d6 [file] [log] [blame]
Daniel Veillard1164e751999-02-16 16:29:17 +00001## Process this file with automake to produce Makefile.in
Daniel Richard G6842ee82012-08-17 09:58:38 +08002SUBDIRS = . devhelp examples
Daniel Veillard1164e751999-02-16 16:29:17 +00003
4# The top-level SGML file.
Daniel Veillardd4330462003-04-29 12:40:16 +00005DOC_MAIN_XML_FILE=gnome-xml.xml
Daniel Veillard1164e751999-02-16 16:29:17 +00006
7# The directory containing the source code (if it contains documentation).
8DOC_SOURCE_DIR=..
9
William M. Brack476cd962003-08-13 11:09:42 +000010# A file in win32 depends upon one of the doc files
11WIN32_DIR=$(top_srcdir)/win32
12
Daniel Veillardc9484202001-10-24 12:35:52 +000013PAGES= 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 \
Daniel Veillard7b602b42002-01-08 13:26:00 +000016 tree.html xmldtd.html XMLinfo.html XSLT.html
Daniel Veillard3bf65be2002-01-23 12:36:34 +000017APIPAGES=APIconstructors.html APIfiles.html APIfunctions.html \
Daniel Veillardf8592562002-01-23 17:58:17 +000018 APIsymbols.html APIchunk0.html
Daniel Veillardf9c4cad2002-11-22 15:57:07 +000019
Daniel Richard G5706b6d2012-08-06 11:32:54 +080020if 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
Daniel Veillard1164e751999-02-16 16:29:17 +0000237
Daniel Veillard52dcab32001-10-30 12:51:17 +0000238man_MANS = xmllint.1 xmlcatalog.1
Daniel Veillard98fed372001-09-13 11:34:58 +0000239
Daniel Veillardb40744e2008-10-17 13:26:44 +0000240if REBUILD_DOCS
Daniel Richard G5706b6d2012-08-06 11:32:54 +0800241docs: web $(top_builddir)/NEWS libxml2.xsa $(man_MANS)
Daniel Veillardc9484202001-10-24 12:35:52 +0000242
Daniel Veillard9a15b302009-08-07 16:27:15 +0200243api: libxml2-api.xml libxml2-refs.xml $(APIPAGES) $(srcdir)/html/index.html $(WIN32_DIR)/libxml2.def.src ../elfgcchack.h $(srcdir)/site.xsl
Daniel Veillard1d913862003-11-21 00:28:39 +0000244
245web: $(PAGES)
Daniel Veillard3bf65be2002-01-23 12:36:34 +0000246
Daniel Veillarda2351322004-06-27 12:08:10 +0000247../elfgcchack.h: $(srcdir)/elfgcchack.xsl $(srcdir)/libxml2-api.xml
Daniel Veillard06500c82004-09-07 09:12:44 +0000248 -@(if [ -x $(XSLTPROC) ] ; then \
Daniel Veillarda2351322004-06-27 12:08:10 +0000249 echo "Rebuilding the elfgcchack.h header" ; \
Daniel Veillard06500c82004-09-07 09:12:44 +0000250 $(XSLTPROC) --nonet $(srcdir)/elfgcchack.xsl $(srcdir)/libxml2-api.xml > elfgcchack.h ; \
Daniel Veillarda2351322004-06-27 12:08:10 +0000251 if [ "`diff -q elfgcchack.h ../elfgcchack.h`" ] ; then \
Daniel Veillard01fa6152004-06-29 17:04:39 +0000252 echo "updating ../elfgcchack.h"; \
Daniel Veillarda2351322004-06-27 12:08:10 +0000253 cp elfgcchack.h ../elfgcchack.h; \
254 fi ; rm -f elfgcchack.h ; fi );
255
Daniel Veillarddde64082011-03-23 08:12:26 +0800256$(PAGES): xml.html $(srcdir)/site.xsl
Daniel Veillard06500c82004-09-07 09:12:44 +0000257 -@(if [ -x $(XSLTPROC) ] ; then \
Daniel Veillarde8ba84e2003-11-18 13:54:15 +0000258 echo "Rebuilding the HTML Web pages from xml.html" ; \
Daniel Richard G6842ee82012-08-17 09:58:38 +0800259 $(XSLTPROC) --nonet --html --path $(srcdir) $(srcdir)/site.xsl $(srcdir)/xml.html > index.html ; fi );
Daniel Veillard06500c82004-09-07 09:12:44 +0000260 -@(if [ -x $(XMLLINT) ] ; then \
Daniel Veillarde8ba84e2003-11-18 13:54:15 +0000261 echo "Validating the HTML Web pages" ; \
Daniel Veillard06500c82004-09-07 09:12:44 +0000262 $(XMLLINT) --nonet --valid --noout $(PAGES) ; fi );
Daniel Veillard55a99271999-02-25 11:01:29 +0000263
Daniel Richard G6842ee82012-08-17 09:58:38 +0800264$(top_builddir)/NEWS: $(srcdir)/news.xsl $(srcdir)/news.html
Daniel Veillard06500c82004-09-07 09:12:44 +0000265 -@(if [ -x $(XSLTPROC) ] ; then \
Daniel Richard G6842ee82012-08-17 09:58:38 +0800266 $(XSLTPROC) --nonet $(srcdir)/news.xsl $(srcdir)/news.html > $(top_builddir)/NEWS ; fi );
Daniel Veillard8ba17412003-01-01 19:13:12 +0000267
Daniel Richard G6842ee82012-08-17 09:58:38 +0800268libxml2.xsa: $(srcdir)/xsa.xsl $(srcdir)/news.html
Daniel Veillard06500c82004-09-07 09:12:44 +0000269 -@(if [ -x $(XSLTPROC) ] ; then \
Daniel Veillardeebd6332004-08-26 10:30:44 +0000270 echo "Rebuilding the NEWS file" ; \
Daniel Richard G6842ee82012-08-17 09:58:38 +0800271 $(XSLTPROC) --nonet $(srcdir)/xsa.xsl $(srcdir)/news.html > libxml2.xsa ; fi );
Daniel Veillardb4d30b62003-03-16 22:32:36 +0000272
Daniel Richard G6842ee82012-08-17 09:58:38 +0800273$(APIPAGES): libxml2-api.xml libxml2-refs.xml $(srcdir)/site.xsl $(srcdir)/api.xsl
Daniel Veillard06500c82004-09-07 09:12:44 +0000274 -@(if [ -x $(XSLTPROC) ] ; then \
Daniel Veillarde8ba84e2003-11-18 13:54:15 +0000275 echo "Rebuilding the HTML API pages from libxml2-refs.xml" ; \
Daniel Richard G6842ee82012-08-17 09:58:38 +0800276 $(XSLTPROC) --nonet --html $(srcdir)/api.xsl \
277 $(srcdir)/xml.html ; fi );
Daniel Veillard06500c82004-09-07 09:12:44 +0000278 -@(if [ -x $(XMLLINT) ] ; then \
Daniel Veillarde8ba84e2003-11-18 13:54:15 +0000279 echo "Validating the HTML API pages" ; \
Daniel Veillard06500c82004-09-07 09:12:44 +0000280 $(XMLLINT) --nonet --valid --noout API*.html ; fi );
Daniel Veillard3bf65be2002-01-23 12:36:34 +0000281
Daniel Veillarde8ba84e2003-11-18 13:54:15 +0000282$(srcdir)/html/index.html: libxml2-api.xml $(srcdir)/newapi.xsl
Daniel Veillard06500c82004-09-07 09:12:44 +0000283 -@(if [ -x $(XSLTPROC) ] ; then \
Daniel Veillard2925c0a2003-11-17 13:58:17 +0000284 echo "Rebuilding the HTML pages from the XML API" ; \
Daniel Richard G6842ee82012-08-17 09:58:38 +0800285 $(XSLTPROC) --nonet $(srcdir)/newapi.xsl $(srcdir)/libxml2-api.xml ; fi )
Daniel Veillard06500c82004-09-07 09:12:44 +0000286 -@(if [ -x $(XMLLINT) ] ; then \
Daniel Veillard2925c0a2003-11-17 13:58:17 +0000287 echo "Validating the resulting XHTML pages" ; \
Daniel Veillard06500c82004-09-07 09:12:44 +0000288 $(XMLLINT) --nonet --valid --noout html/*.html ; fi );
Daniel Veillard817e70b2002-11-19 22:28:48 +0000289
Daniel Veillarde92bf5d2005-02-04 17:28:19 +0000290wiki: libxml2-api.xml $(srcdir)/wiki.xsl
291 -@(if [ -x $(XSLTPROC) ] ; then \
292 echo "Rebuilding the wiki HTML pages from the XML API" ; \
Daniel Richard G6842ee82012-08-17 09:58:38 +0800293 $(XSLTPROC) --nonet $(srcdir)/wiki.xsl $(srcdir)/libxml2-api.xml; fi )
Daniel Veillarde92bf5d2005-02-04 17:28:19 +0000294
William M. Brack7a821652003-08-15 07:27:40 +0000295$(WIN32_DIR)/libxml2.def.src: libxml2-api.xml
Daniel Veillard06500c82004-09-07 09:12:44 +0000296 -@(if [ -x $(XSLTPROC) ] ; then \
297 $(XSLTPROC) -o $(WIN32_DIR)/libxml2.def.src \
William M. Brack476cd962003-08-13 11:09:42 +0000298 --nonet $(WIN32_DIR)/defgen.xsl libxml2-api.xml ; fi )
299
Daniel Richard G6842ee82012-08-17 09:58:38 +0800300source_file_deps = \
301 $(filter-out %/xmlversion.h, $(wildcard $(top_srcdir)/include/libxml/*.h)) \
302 $(top_srcdir)/include/libxml/xmlversion.h.in \
303 $(wildcard $(top_srcdir)/*.c)
304
305libxml2-api.xml libxml2-refs.xml ../libxml2.syms: apibuild.py symbols.xml syms.xsl checkapisym.xsl $(source_file_deps)
306 (cd $(srcdir) && ./apibuild.py)
Daniel Richard G5706b6d2012-08-06 11:32:54 +0800307 ($(XSLTPROC) $(srcdir)/checkapisym.xsl $(srcdir)/libxml2-api.xml)
308 ($(XSLTPROC) -o ../libxml2.syms $(srcdir)/syms.xsl $(srcdir)/symbols.xml)
Daniel Veillard2ae13382005-01-25 23:45:06 +0000309 -@(cd .. ; $(MAKE) rebuild_testapi)
310
Daniel Veillarde8ba84e2003-11-18 13:54:15 +0000311
312xmllint.1: xmllint.xml
Daniel Veillard06500c82004-09-07 09:12:44 +0000313 -@($(XSLTPROC) --nonet xmllint.xml)
Daniel Veillarde8ba84e2003-11-18 13:54:15 +0000314
315xmlcatalog.1: xmlcatalog_man.xml
Daniel Veillard06500c82004-09-07 09:12:44 +0000316 -@($(XSLTPROC) --nonet xmlcatalog_man.xml)
Daniel Veillard61006472002-01-21 17:31:47 +0000317
Daniel Richard G5706b6d2012-08-06 11:32:54 +0800318check-extra-dist:
319 for f in $(EXTRA_DIST_wc) ; do echo $$f; done | sort -u >tmp.EXTRA_DIST_wc
320 for f in $(EXTRA_DIST) ; do echo $$f; done | sort >tmp.EXTRA_DIST
321 diff -u tmp.EXTRA_DIST_wc tmp.EXTRA_DIST
322 rm -f tmp.EXTRA_DIST_wc tmp.EXTRA_DIST
323endif
324
Daniel Veillard1164e751999-02-16 16:29:17 +0000325clean-local:
326 rm -f *~ *.bak *.hierarchy *.signals *-unused.txt
327
William M. Brack5a9c1fd2004-12-17 21:38:09 +0000328maintainer-clean-local: clean-local
Daniel Veillard93d95252003-04-29 20:25:40 +0000329 rm -rf libxml-decl-list.txt libxml-decl.txt
Daniel Veillard1164e751999-02-16 16:29:17 +0000330
Daniel Richard G5706b6d2012-08-06 11:32:54 +0800331rebuild: api docs
Daniel Veillard1e346af1999-02-22 10:33:01 +0000332
Daniel Veillard55a99271999-02-25 11:01:29 +0000333install-data-local:
Daniel Richard G5706b6d2012-08-06 11:32:54 +0800334 $(MKDIR_P) $(DESTDIR)$(HTML_DIR)
335 -$(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)
336 $(MKDIR_P) $(DESTDIR)$(HTML_DIR)/html
337 -$(INSTALL) -m 0644 $(srcdir)/html/*.html $(DESTDIR)$(HTML_DIR)/html
338 -$(INSTALL) -m 0644 $(srcdir)/html/*.png $(DESTDIR)$(HTML_DIR)/html
339 $(MKDIR_P) $(DESTDIR)$(HTML_DIR)/tutorial
340 -$(INSTALL) -m 0644 $(srcdir)/tutorial/*.* \
Daniel Veillardfc979062004-03-04 22:07:16 +0000341 $(DESTDIR)$(HTML_DIR)/tutorial
Daniel Richard G5706b6d2012-08-06 11:32:54 +0800342 $(MKDIR_P) $(DESTDIR)$(HTML_DIR)/tutorial/images
343 -$(INSTALL) -m 0644 $(srcdir)/tutorial/images/*.* \
Daniel Veillardfc979062004-03-04 22:07:16 +0000344 $(DESTDIR)$(HTML_DIR)/tutorial/images
Daniel Richard G5706b6d2012-08-06 11:32:54 +0800345 $(MKDIR_P) $(DESTDIR)$(HTML_DIR)/tutorial/images/callouts
346 -$(INSTALL) -m 0644 $(srcdir)/tutorial/images/callouts/*.* \
Daniel Veillardfc979062004-03-04 22:07:16 +0000347 $(DESTDIR)$(HTML_DIR)/tutorial/images/callouts
Daniel Veillard55a99271999-02-25 11:01:29 +0000348
Daniel Veillard93d95252003-04-29 20:25:40 +0000349.PHONY : html xml templates scan