blob: dd39f693e1a53654fd01320d06712296be9c0a43 [file] [log] [blame]
Daniel Veillard1164e751999-02-16 16:29:17 +00001## Process this file with automake to produce Makefile.in
Daniel Veillard602434d2005-09-12 09:20:31 +00002SUBDIRS=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 Veillarddad3f682002-11-17 16:47:27 +000019EXTRA_DIST=xmlcatalog_man.xml tutorial/*.html tutorial/*.c tutorial/*.pdf \
20 tutorial/images/*.png tutorial/images/callouts/*.png \
Daniel Veillardf9c4cad2002-11-22 15:57:07 +000021 API*.html *.1 *.xsl *.html *.gif w3c.png html/*.html \
Daniel Veillard323268f2003-12-10 10:52:08 +000022 html/*.png libxml2-api.xml index.py search.php \
William M. Brack3f479502003-09-01 04:58:15 +000023 apibuild.py libxml2.xsa xmllint.xml xmlcatalog_man.xml \
Daniel Veillard4dd115c2009-09-23 18:32:42 +020024 README.docs symbols.xml
Daniel Veillardf9c4cad2002-11-22 15:57:07 +000025
Daniel Veillard1164e751999-02-16 16:29:17 +000026
Daniel Veillard52dcab32001-10-30 12:51:17 +000027man_MANS = xmllint.1 xmlcatalog.1
Daniel Veillard98fed372001-09-13 11:34:58 +000028
Daniel Veillardb40744e2008-10-17 13:26:44 +000029if REBUILD_DOCS
William M. Brack106cad62004-12-23 15:56:12 +000030all: web $(top_builddir)/NEWS libxml2.xsa $(man_MANS)
Daniel Veillardb40744e2008-10-17 13:26:44 +000031else
32all:
33endif
Daniel Veillardc9484202001-10-24 12:35:52 +000034
Daniel Veillard9a15b302009-08-07 16:27:15 +020035api: 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 +000036
37web: $(PAGES)
Daniel Veillard3bf65be2002-01-23 12:36:34 +000038
Daniel Veillarda2351322004-06-27 12:08:10 +000039../elfgcchack.h: $(srcdir)/elfgcchack.xsl $(srcdir)/libxml2-api.xml
Daniel Veillard06500c82004-09-07 09:12:44 +000040 -@(if [ -x $(XSLTPROC) ] ; then \
Daniel Veillarda2351322004-06-27 12:08:10 +000041 echo "Rebuilding the elfgcchack.h header" ; \
Daniel Veillard06500c82004-09-07 09:12:44 +000042 $(XSLTPROC) --nonet $(srcdir)/elfgcchack.xsl $(srcdir)/libxml2-api.xml > elfgcchack.h ; \
Daniel Veillarda2351322004-06-27 12:08:10 +000043 if [ "`diff -q elfgcchack.h ../elfgcchack.h`" ] ; then \
Daniel Veillard01fa6152004-06-29 17:04:39 +000044 echo "updating ../elfgcchack.h"; \
Daniel Veillarda2351322004-06-27 12:08:10 +000045 cp elfgcchack.h ../elfgcchack.h; \
46 fi ; rm -f elfgcchack.h ; fi );
47
Daniel Veillarddde64082011-03-23 08:12:26 +080048$(PAGES): xml.html $(srcdir)/site.xsl
Daniel Veillard06500c82004-09-07 09:12:44 +000049 -@(if [ -x $(XSLTPROC) ] ; then \
Daniel Veillarde8ba84e2003-11-18 13:54:15 +000050 echo "Rebuilding the HTML Web pages from xml.html" ; \
Daniel Veillard06500c82004-09-07 09:12:44 +000051 $(XSLTPROC) --nonet --html $(top_srcdir)/doc/site.xsl $(top_srcdir)/doc/xml.html > index.html ; fi );
52 -@(if [ -x $(XMLLINT) ] ; then \
Daniel Veillarde8ba84e2003-11-18 13:54:15 +000053 echo "Validating the HTML Web pages" ; \
Daniel Veillard06500c82004-09-07 09:12:44 +000054 $(XMLLINT) --nonet --valid --noout $(PAGES) ; fi );
Daniel Veillard55a99271999-02-25 11:01:29 +000055
William M. Brack106cad62004-12-23 15:56:12 +000056$(top_builddir)/NEWS: $(top_srcdir)/doc/news.xsl $(top_srcdir)/doc/news.html
Daniel Veillard06500c82004-09-07 09:12:44 +000057 -@(if [ -x $(XSLTPROC) ] ; then \
William M. Brack106cad62004-12-23 15:56:12 +000058 $(XSLTPROC) --nonet $(top_srcdir)/doc/news.xsl $(top_srcdir)/doc/news.html > $(top_builddir)/NEWS ; fi );
Daniel Veillard8ba17412003-01-01 19:13:12 +000059
Daniel Veillardb4d30b62003-03-16 22:32:36 +000060libxml2.xsa: $(top_srcdir)/doc/xsa.xsl $(top_srcdir)/doc/news.html
Daniel Veillard06500c82004-09-07 09:12:44 +000061 -@(if [ -x $(XSLTPROC) ] ; then \
Daniel Veillardeebd6332004-08-26 10:30:44 +000062 echo "Rebuilding the NEWS file" ; \
Daniel Veillard06500c82004-09-07 09:12:44 +000063 $(XSLTPROC) --nonet $(top_srcdir)/doc/xsa.xsl $(top_srcdir)/doc/news.html > libxml2.xsa ; fi );
Daniel Veillardb4d30b62003-03-16 22:32:36 +000064
Daniel Veillarde8ba84e2003-11-18 13:54:15 +000065$(APIPAGES): libxml2-api.xml libxml2-refs.xml $(top_srcdir)/doc/site.xsl $(top_srcdir)/doc/api.xsl
Daniel Veillard06500c82004-09-07 09:12:44 +000066 -@(if [ -x $(XSLTPROC) ] ; then \
Daniel Veillarde8ba84e2003-11-18 13:54:15 +000067 echo "Rebuilding the HTML API pages from libxml2-refs.xml" ; \
Daniel Veillard06500c82004-09-07 09:12:44 +000068 $(XSLTPROC) --nonet --html $(top_srcdir)/doc/api.xsl \
Daniel Veillarde8ba84e2003-11-18 13:54:15 +000069 $(top_srcdir)/doc/xml.html ; fi );
Daniel Veillard06500c82004-09-07 09:12:44 +000070 -@(if [ -x $(XMLLINT) ] ; then \
Daniel Veillarde8ba84e2003-11-18 13:54:15 +000071 echo "Validating the HTML API pages" ; \
Daniel Veillard06500c82004-09-07 09:12:44 +000072 $(XMLLINT) --nonet --valid --noout API*.html ; fi );
Daniel Veillard3bf65be2002-01-23 12:36:34 +000073
Daniel Veillarde8ba84e2003-11-18 13:54:15 +000074$(srcdir)/html/index.html: libxml2-api.xml $(srcdir)/newapi.xsl
Daniel Veillard06500c82004-09-07 09:12:44 +000075 -@(if [ -x $(XSLTPROC) ] ; then \
Daniel Veillard2925c0a2003-11-17 13:58:17 +000076 echo "Rebuilding the HTML pages from the XML API" ; \
Daniel Veillard06500c82004-09-07 09:12:44 +000077 $(XSLTPROC) --nonet $(srcdir)/newapi.xsl libxml2-api.xml ; fi )
78 -@(if [ -x $(XMLLINT) ] ; then \
Daniel Veillard2925c0a2003-11-17 13:58:17 +000079 echo "Validating the resulting XHTML pages" ; \
Daniel Veillard06500c82004-09-07 09:12:44 +000080 $(XMLLINT) --nonet --valid --noout html/*.html ; fi );
Daniel Veillard817e70b2002-11-19 22:28:48 +000081
Daniel Veillarde92bf5d2005-02-04 17:28:19 +000082wiki: libxml2-api.xml $(srcdir)/wiki.xsl
83 -@(if [ -x $(XSLTPROC) ] ; then \
84 echo "Rebuilding the wiki HTML pages from the XML API" ; \
85 $(XSLTPROC) --nonet $(srcdir)/wiki.xsl libxml2-api.xml; fi )
86
William M. Brack7a821652003-08-15 07:27:40 +000087$(WIN32_DIR)/libxml2.def.src: libxml2-api.xml
Daniel Veillard06500c82004-09-07 09:12:44 +000088 -@(if [ -x $(XSLTPROC) ] ; then \
89 $(XSLTPROC) -o $(WIN32_DIR)/libxml2.def.src \
William M. Brack476cd962003-08-13 11:09:42 +000090 --nonet $(WIN32_DIR)/defgen.xsl libxml2-api.xml ; fi )
91
Daniel Veillardf609d742009-08-21 15:16:46 +020092libxml2-api.xml libxml2-refs.xml ../libxml2.syms: apibuild.py symbols.xml syms.xsl checkapisym.xsl ../include/libxml/*.h ../*.c
Daniel Veillarde8ba84e2003-11-18 13:54:15 +000093 -(./apibuild.py)
Daniel Veillardf447ab82009-08-24 19:47:00 +020094 ($(XSLTPROC) checkapisym.xsl libxml2-api.xml)
95 ($(XSLTPROC) -o ../libxml2.syms syms.xsl symbols.xml)
Daniel Veillard2ae13382005-01-25 23:45:06 +000096 -@(cd .. ; $(MAKE) rebuild_testapi)
97
Daniel Veillarde8ba84e2003-11-18 13:54:15 +000098
99xmllint.1: xmllint.xml
Daniel Veillard06500c82004-09-07 09:12:44 +0000100 -@($(XSLTPROC) --nonet xmllint.xml)
Daniel Veillarde8ba84e2003-11-18 13:54:15 +0000101
102xmlcatalog.1: xmlcatalog_man.xml
Daniel Veillard06500c82004-09-07 09:12:44 +0000103 -@($(XSLTPROC) --nonet xmlcatalog_man.xml)
Daniel Veillard61006472002-01-21 17:31:47 +0000104
Daniel Veillard1164e751999-02-16 16:29:17 +0000105clean-local:
106 rm -f *~ *.bak *.hierarchy *.signals *-unused.txt
107
William M. Brack5a9c1fd2004-12-17 21:38:09 +0000108maintainer-clean-local: clean-local
Daniel Veillard93d95252003-04-29 20:25:40 +0000109 rm -rf libxml-decl-list.txt libxml-decl.txt
Daniel Veillard1164e751999-02-16 16:29:17 +0000110
Daniel Veillard1d913862003-11-21 00:28:39 +0000111rebuild: api all
Daniel Veillard1e346af1999-02-22 10:33:01 +0000112
Daniel Veillard55a99271999-02-25 11:01:29 +0000113install-data-local:
Adrian Bunk64b0d602010-11-04 09:43:31 +0100114 @MKDIR_P@ $(DESTDIR)$(HTML_DIR)
Daniel Veillardfc979062004-03-04 22:07:16 +0000115 -@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)
Adrian Bunk64b0d602010-11-04 09:43:31 +0100116 @MKDIR_P@ $(DESTDIR)$(HTML_DIR)/html
Daniel Veillardfc979062004-03-04 22:07:16 +0000117 -@INSTALL@ -m 0644 $(srcdir)/html/*.html $(DESTDIR)$(HTML_DIR)/html
118 -@INSTALL@ -m 0644 $(srcdir)/html/*.png $(DESTDIR)$(HTML_DIR)/html
Adrian Bunk64b0d602010-11-04 09:43:31 +0100119 @MKDIR_P@ $(DESTDIR)$(HTML_DIR)/tutorial
William M. Brackfc60fc22003-10-19 11:22:27 +0000120 -@INSTALL@ -m 0644 $(srcdir)/tutorial/*.* \
Daniel Veillardfc979062004-03-04 22:07:16 +0000121 $(DESTDIR)$(HTML_DIR)/tutorial
Adrian Bunk64b0d602010-11-04 09:43:31 +0100122 @MKDIR_P@ $(DESTDIR)$(HTML_DIR)/tutorial/images
William M. Brackfc60fc22003-10-19 11:22:27 +0000123 -@INSTALL@ -m 0644 $(srcdir)/tutorial/images/*.* \
Daniel Veillardfc979062004-03-04 22:07:16 +0000124 $(DESTDIR)$(HTML_DIR)/tutorial/images
Adrian Bunk64b0d602010-11-04 09:43:31 +0100125 @MKDIR_P@ $(DESTDIR)$(HTML_DIR)/tutorial/images/callouts
William M. Brackfc60fc22003-10-19 11:22:27 +0000126 -@INSTALL@ -m 0644 $(srcdir)/tutorial/images/callouts/*.* \
Daniel Veillardfc979062004-03-04 22:07:16 +0000127 $(DESTDIR)$(HTML_DIR)/tutorial/images/callouts
Daniel Veillard55a99271999-02-25 11:01:29 +0000128
Daniel Veillard93d95252003-04-29 20:25:40 +0000129.PHONY : html xml templates scan