Daniel Veillard | 1164e75 | 1999-02-16 16:29:17 +0000 | [diff] [blame] | 1 | ## Process this file with automake to produce Makefile.in |
Daniel Veillard | 602434d | 2005-09-12 09:20:31 +0000 | [diff] [blame] | 2 | SUBDIRS=devhelp examples |
Daniel Veillard | 1164e75 | 1999-02-16 16:29:17 +0000 | [diff] [blame] | 3 | |
| 4 | # The top-level SGML file. |
Daniel Veillard | d433046 | 2003-04-29 12:40:16 +0000 | [diff] [blame] | 5 | DOC_MAIN_XML_FILE=gnome-xml.xml |
Daniel Veillard | 1164e75 | 1999-02-16 16:29:17 +0000 | [diff] [blame] | 6 | |
| 7 | # The directory containing the source code (if it contains documentation). |
| 8 | DOC_SOURCE_DIR=.. |
| 9 | |
William M. Brack | 476cd96 | 2003-08-13 11:09:42 +0000 | [diff] [blame] | 10 | # A file in win32 depends upon one of the doc files |
| 11 | WIN32_DIR=$(top_srcdir)/win32 |
| 12 | |
Daniel Veillard | c948420 | 2001-10-24 12:35:52 +0000 | [diff] [blame] | 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 \ |
Daniel Veillard | 7b602b4 | 2002-01-08 13:26:00 +0000 | [diff] [blame] | 16 | tree.html xmldtd.html XMLinfo.html XSLT.html |
Daniel Veillard | 3bf65be | 2002-01-23 12:36:34 +0000 | [diff] [blame] | 17 | APIPAGES=APIconstructors.html APIfiles.html APIfunctions.html \ |
Daniel Veillard | f859256 | 2002-01-23 17:58:17 +0000 | [diff] [blame] | 18 | APIsymbols.html APIchunk0.html |
Daniel Veillard | dad3f68 | 2002-11-17 16:47:27 +0000 | [diff] [blame] | 19 | EXTRA_DIST=xmlcatalog_man.xml tutorial/*.html tutorial/*.c tutorial/*.pdf \ |
| 20 | tutorial/images/*.png tutorial/images/callouts/*.png \ |
Daniel Veillard | f9c4cad | 2002-11-22 15:57:07 +0000 | [diff] [blame] | 21 | API*.html *.1 *.xsl *.html *.gif w3c.png html/*.html \ |
Daniel Veillard | 323268f | 2003-12-10 10:52:08 +0000 | [diff] [blame] | 22 | html/*.png libxml2-api.xml index.py search.php \ |
William M. Brack | 3f47950 | 2003-09-01 04:58:15 +0000 | [diff] [blame] | 23 | apibuild.py libxml2.xsa xmllint.xml xmlcatalog_man.xml \ |
| 24 | README.docs |
Daniel Veillard | f9c4cad | 2002-11-22 15:57:07 +0000 | [diff] [blame] | 25 | |
Daniel Veillard | 1164e75 | 1999-02-16 16:29:17 +0000 | [diff] [blame] | 26 | |
Daniel Veillard | 52dcab3 | 2001-10-30 12:51:17 +0000 | [diff] [blame] | 27 | man_MANS = xmllint.1 xmlcatalog.1 |
Daniel Veillard | 98fed37 | 2001-09-13 11:34:58 +0000 | [diff] [blame] | 28 | |
William M. Brack | 106cad6 | 2004-12-23 15:56:12 +0000 | [diff] [blame] | 29 | all: web $(top_builddir)/NEWS libxml2.xsa $(man_MANS) |
Daniel Veillard | c948420 | 2001-10-24 12:35:52 +0000 | [diff] [blame] | 30 | |
Daniel Veillard | a235132 | 2004-06-27 12:08:10 +0000 | [diff] [blame] | 31 | api: libxml2-api.xml libxml2-refs.xml $(APIPAGES) $(srcdir)/html/index.html $(WIN32_DIR)/libxml2.def.src ../elfgcchack.h |
Daniel Veillard | 1d91386 | 2003-11-21 00:28:39 +0000 | [diff] [blame] | 32 | |
| 33 | web: $(PAGES) |
Daniel Veillard | 3bf65be | 2002-01-23 12:36:34 +0000 | [diff] [blame] | 34 | |
Daniel Veillard | a235132 | 2004-06-27 12:08:10 +0000 | [diff] [blame] | 35 | ../elfgcchack.h: $(srcdir)/elfgcchack.xsl $(srcdir)/libxml2-api.xml |
Daniel Veillard | 06500c8 | 2004-09-07 09:12:44 +0000 | [diff] [blame] | 36 | -@(if [ -x $(XSLTPROC) ] ; then \ |
Daniel Veillard | a235132 | 2004-06-27 12:08:10 +0000 | [diff] [blame] | 37 | echo "Rebuilding the elfgcchack.h header" ; \ |
Daniel Veillard | 06500c8 | 2004-09-07 09:12:44 +0000 | [diff] [blame] | 38 | $(XSLTPROC) --nonet $(srcdir)/elfgcchack.xsl $(srcdir)/libxml2-api.xml > elfgcchack.h ; \ |
Daniel Veillard | a235132 | 2004-06-27 12:08:10 +0000 | [diff] [blame] | 39 | if [ "`diff -q elfgcchack.h ../elfgcchack.h`" ] ; then \ |
Daniel Veillard | 01fa615 | 2004-06-29 17:04:39 +0000 | [diff] [blame] | 40 | echo "updating ../elfgcchack.h"; \ |
Daniel Veillard | a235132 | 2004-06-27 12:08:10 +0000 | [diff] [blame] | 41 | cp elfgcchack.h ../elfgcchack.h; \ |
| 42 | fi ; rm -f elfgcchack.h ; fi ); |
| 43 | |
Daniel Veillard | c948420 | 2001-10-24 12:35:52 +0000 | [diff] [blame] | 44 | $(PAGES): xml.html site.xsl |
Daniel Veillard | 06500c8 | 2004-09-07 09:12:44 +0000 | [diff] [blame] | 45 | -@(if [ -x $(XSLTPROC) ] ; then \ |
Daniel Veillard | e8ba84e | 2003-11-18 13:54:15 +0000 | [diff] [blame] | 46 | echo "Rebuilding the HTML Web pages from xml.html" ; \ |
Daniel Veillard | 06500c8 | 2004-09-07 09:12:44 +0000 | [diff] [blame] | 47 | $(XSLTPROC) --nonet --html $(top_srcdir)/doc/site.xsl $(top_srcdir)/doc/xml.html > index.html ; fi ); |
| 48 | -@(if [ -x $(XMLLINT) ] ; then \ |
Daniel Veillard | e8ba84e | 2003-11-18 13:54:15 +0000 | [diff] [blame] | 49 | echo "Validating the HTML Web pages" ; \ |
Daniel Veillard | 06500c8 | 2004-09-07 09:12:44 +0000 | [diff] [blame] | 50 | $(XMLLINT) --nonet --valid --noout $(PAGES) ; fi ); |
Daniel Veillard | 55a9927 | 1999-02-25 11:01:29 +0000 | [diff] [blame] | 51 | |
William M. Brack | 106cad6 | 2004-12-23 15:56:12 +0000 | [diff] [blame] | 52 | $(top_builddir)/NEWS: $(top_srcdir)/doc/news.xsl $(top_srcdir)/doc/news.html |
Daniel Veillard | 06500c8 | 2004-09-07 09:12:44 +0000 | [diff] [blame] | 53 | -@(if [ -x $(XSLTPROC) ] ; then \ |
William M. Brack | 106cad6 | 2004-12-23 15:56:12 +0000 | [diff] [blame] | 54 | $(XSLTPROC) --nonet $(top_srcdir)/doc/news.xsl $(top_srcdir)/doc/news.html > $(top_builddir)/NEWS ; fi ); |
Daniel Veillard | 8ba1741 | 2003-01-01 19:13:12 +0000 | [diff] [blame] | 55 | |
Daniel Veillard | b4d30b6 | 2003-03-16 22:32:36 +0000 | [diff] [blame] | 56 | libxml2.xsa: $(top_srcdir)/doc/xsa.xsl $(top_srcdir)/doc/news.html |
Daniel Veillard | 06500c8 | 2004-09-07 09:12:44 +0000 | [diff] [blame] | 57 | -@(if [ -x $(XSLTPROC) ] ; then \ |
Daniel Veillard | eebd633 | 2004-08-26 10:30:44 +0000 | [diff] [blame] | 58 | echo "Rebuilding the NEWS file" ; \ |
Daniel Veillard | 06500c8 | 2004-09-07 09:12:44 +0000 | [diff] [blame] | 59 | $(XSLTPROC) --nonet $(top_srcdir)/doc/xsa.xsl $(top_srcdir)/doc/news.html > libxml2.xsa ; fi ); |
Daniel Veillard | b4d30b6 | 2003-03-16 22:32:36 +0000 | [diff] [blame] | 60 | |
Daniel Veillard | e8ba84e | 2003-11-18 13:54:15 +0000 | [diff] [blame] | 61 | $(APIPAGES): libxml2-api.xml libxml2-refs.xml $(top_srcdir)/doc/site.xsl $(top_srcdir)/doc/api.xsl |
Daniel Veillard | 06500c8 | 2004-09-07 09:12:44 +0000 | [diff] [blame] | 62 | -@(if [ -x $(XSLTPROC) ] ; then \ |
Daniel Veillard | e8ba84e | 2003-11-18 13:54:15 +0000 | [diff] [blame] | 63 | echo "Rebuilding the HTML API pages from libxml2-refs.xml" ; \ |
Daniel Veillard | 06500c8 | 2004-09-07 09:12:44 +0000 | [diff] [blame] | 64 | $(XSLTPROC) --nonet --html $(top_srcdir)/doc/api.xsl \ |
Daniel Veillard | e8ba84e | 2003-11-18 13:54:15 +0000 | [diff] [blame] | 65 | $(top_srcdir)/doc/xml.html ; fi ); |
Daniel Veillard | 06500c8 | 2004-09-07 09:12:44 +0000 | [diff] [blame] | 66 | -@(if [ -x $(XMLLINT) ] ; then \ |
Daniel Veillard | e8ba84e | 2003-11-18 13:54:15 +0000 | [diff] [blame] | 67 | echo "Validating the HTML API pages" ; \ |
Daniel Veillard | 06500c8 | 2004-09-07 09:12:44 +0000 | [diff] [blame] | 68 | $(XMLLINT) --nonet --valid --noout API*.html ; fi ); |
Daniel Veillard | 3bf65be | 2002-01-23 12:36:34 +0000 | [diff] [blame] | 69 | |
Daniel Veillard | e8ba84e | 2003-11-18 13:54:15 +0000 | [diff] [blame] | 70 | $(srcdir)/html/index.html: libxml2-api.xml $(srcdir)/newapi.xsl |
Daniel Veillard | 06500c8 | 2004-09-07 09:12:44 +0000 | [diff] [blame] | 71 | -@(if [ -x $(XSLTPROC) ] ; then \ |
Daniel Veillard | 2925c0a | 2003-11-17 13:58:17 +0000 | [diff] [blame] | 72 | echo "Rebuilding the HTML pages from the XML API" ; \ |
Daniel Veillard | 06500c8 | 2004-09-07 09:12:44 +0000 | [diff] [blame] | 73 | $(XSLTPROC) --nonet $(srcdir)/newapi.xsl libxml2-api.xml ; fi ) |
| 74 | -@(if [ -x $(XMLLINT) ] ; then \ |
Daniel Veillard | 2925c0a | 2003-11-17 13:58:17 +0000 | [diff] [blame] | 75 | echo "Validating the resulting XHTML pages" ; \ |
Daniel Veillard | 06500c8 | 2004-09-07 09:12:44 +0000 | [diff] [blame] | 76 | $(XMLLINT) --nonet --valid --noout html/*.html ; fi ); |
Daniel Veillard | 817e70b | 2002-11-19 22:28:48 +0000 | [diff] [blame] | 77 | |
Daniel Veillard | e92bf5d | 2005-02-04 17:28:19 +0000 | [diff] [blame] | 78 | wiki: libxml2-api.xml $(srcdir)/wiki.xsl |
| 79 | -@(if [ -x $(XSLTPROC) ] ; then \ |
| 80 | echo "Rebuilding the wiki HTML pages from the XML API" ; \ |
| 81 | $(XSLTPROC) --nonet $(srcdir)/wiki.xsl libxml2-api.xml; fi ) |
| 82 | |
William M. Brack | 7a82165 | 2003-08-15 07:27:40 +0000 | [diff] [blame] | 83 | $(WIN32_DIR)/libxml2.def.src: libxml2-api.xml |
Daniel Veillard | 06500c8 | 2004-09-07 09:12:44 +0000 | [diff] [blame] | 84 | -@(if [ -x $(XSLTPROC) ] ; then \ |
| 85 | $(XSLTPROC) -o $(WIN32_DIR)/libxml2.def.src \ |
William M. Brack | 476cd96 | 2003-08-13 11:09:42 +0000 | [diff] [blame] | 86 | --nonet $(WIN32_DIR)/defgen.xsl libxml2-api.xml ; fi ) |
| 87 | |
Daniel Veillard | e8ba84e | 2003-11-18 13:54:15 +0000 | [diff] [blame] | 88 | libxml2-api.xml libxml2-refs.xml: apibuild.py ../include/libxml/*.h ../*.c |
| 89 | -(./apibuild.py) |
Daniel Veillard | 2ae1338 | 2005-01-25 23:45:06 +0000 | [diff] [blame] | 90 | -@(cd .. ; $(MAKE) rebuild_testapi) |
| 91 | |
Daniel Veillard | e8ba84e | 2003-11-18 13:54:15 +0000 | [diff] [blame] | 92 | |
| 93 | xmllint.1: xmllint.xml |
Daniel Veillard | 06500c8 | 2004-09-07 09:12:44 +0000 | [diff] [blame] | 94 | -@($(XSLTPROC) --nonet xmllint.xml) |
Daniel Veillard | e8ba84e | 2003-11-18 13:54:15 +0000 | [diff] [blame] | 95 | |
| 96 | xmlcatalog.1: xmlcatalog_man.xml |
Daniel Veillard | 06500c8 | 2004-09-07 09:12:44 +0000 | [diff] [blame] | 97 | -@($(XSLTPROC) --nonet xmlcatalog_man.xml) |
Daniel Veillard | 6100647 | 2002-01-21 17:31:47 +0000 | [diff] [blame] | 98 | |
Daniel Veillard | 1164e75 | 1999-02-16 16:29:17 +0000 | [diff] [blame] | 99 | clean-local: |
| 100 | rm -f *~ *.bak *.hierarchy *.signals *-unused.txt |
| 101 | |
William M. Brack | 5a9c1fd | 2004-12-17 21:38:09 +0000 | [diff] [blame] | 102 | maintainer-clean-local: clean-local |
Daniel Veillard | 93d9525 | 2003-04-29 20:25:40 +0000 | [diff] [blame] | 103 | rm -rf libxml-decl-list.txt libxml-decl.txt |
Daniel Veillard | 1164e75 | 1999-02-16 16:29:17 +0000 | [diff] [blame] | 104 | |
Daniel Veillard | 1d91386 | 2003-11-21 00:28:39 +0000 | [diff] [blame] | 105 | rebuild: api all |
Daniel Veillard | 1e346af | 1999-02-22 10:33:01 +0000 | [diff] [blame] | 106 | |
Daniel Veillard | 55a9927 | 1999-02-25 11:01:29 +0000 | [diff] [blame] | 107 | install-data-local: |
Daniel Veillard | fc97906 | 2004-03-04 22:07:16 +0000 | [diff] [blame] | 108 | $(mkinstalldirs) $(DESTDIR)$(HTML_DIR) |
| 109 | -@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) |
| 110 | $(mkinstalldirs) $(DESTDIR)$(HTML_DIR)/html |
| 111 | -@INSTALL@ -m 0644 $(srcdir)/html/*.html $(DESTDIR)$(HTML_DIR)/html |
| 112 | -@INSTALL@ -m 0644 $(srcdir)/html/*.png $(DESTDIR)$(HTML_DIR)/html |
Daniel Veillard | fc97906 | 2004-03-04 22:07:16 +0000 | [diff] [blame] | 113 | $(mkinstalldirs) $(DESTDIR)$(HTML_DIR)/tutorial |
William M. Brack | fc60fc2 | 2003-10-19 11:22:27 +0000 | [diff] [blame] | 114 | -@INSTALL@ -m 0644 $(srcdir)/tutorial/*.* \ |
Daniel Veillard | fc97906 | 2004-03-04 22:07:16 +0000 | [diff] [blame] | 115 | $(DESTDIR)$(HTML_DIR)/tutorial |
| 116 | $(mkinstalldirs) $(DESTDIR)$(HTML_DIR)/tutorial/images |
William M. Brack | fc60fc2 | 2003-10-19 11:22:27 +0000 | [diff] [blame] | 117 | -@INSTALL@ -m 0644 $(srcdir)/tutorial/images/*.* \ |
Daniel Veillard | fc97906 | 2004-03-04 22:07:16 +0000 | [diff] [blame] | 118 | $(DESTDIR)$(HTML_DIR)/tutorial/images |
| 119 | $(mkinstalldirs) $(DESTDIR)$(HTML_DIR)/tutorial/images/callouts |
William M. Brack | fc60fc2 | 2003-10-19 11:22:27 +0000 | [diff] [blame] | 120 | -@INSTALL@ -m 0644 $(srcdir)/tutorial/images/callouts/*.* \ |
Daniel Veillard | fc97906 | 2004-03-04 22:07:16 +0000 | [diff] [blame] | 121 | $(DESTDIR)$(HTML_DIR)/tutorial/images/callouts |
Daniel Veillard | 55a9927 | 1999-02-25 11:01:29 +0000 | [diff] [blame] | 122 | |
Daniel Veillard | 93d9525 | 2003-04-29 20:25:40 +0000 | [diff] [blame] | 123 | .PHONY : html xml templates scan |