Daniel Veillard | 1164e75 | 1999-02-16 16:29:17 +0000 | [diff] [blame] | 1 | ## Process this file with automake to produce Makefile.in |
Daniel Veillard | d8cf906 | 2003-11-11 21:12:36 +0000 | [diff] [blame] | 2 | SUBDIRS=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 | |
Daniel Veillard | 1d91386 | 2003-11-21 00:28:39 +0000 | [diff] [blame] | 29 | all: web $(top_srcdir)/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 | |
Daniel Veillard | 8ba1741 | 2003-01-01 19:13:12 +0000 | [diff] [blame] | 52 | $(top_srcdir)/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 \ |
| 54 | $(XSLTPROC) --nonet $(top_srcdir)/doc/news.xsl $(top_srcdir)/doc/news.html > $(top_srcdir)/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 | |
William M. Brack | 7a82165 | 2003-08-15 07:27:40 +0000 | [diff] [blame] | 78 | $(WIN32_DIR)/libxml2.def.src: libxml2-api.xml |
Daniel Veillard | 06500c8 | 2004-09-07 09:12:44 +0000 | [diff] [blame] | 79 | -@(if [ -x $(XSLTPROC) ] ; then \ |
| 80 | $(XSLTPROC) -o $(WIN32_DIR)/libxml2.def.src \ |
William M. Brack | 476cd96 | 2003-08-13 11:09:42 +0000 | [diff] [blame] | 81 | --nonet $(WIN32_DIR)/defgen.xsl libxml2-api.xml ; fi ) |
| 82 | |
Daniel Veillard | e8ba84e | 2003-11-18 13:54:15 +0000 | [diff] [blame] | 83 | libxml2-api.xml libxml2-refs.xml: apibuild.py ../include/libxml/*.h ../*.c |
| 84 | -(./apibuild.py) |
| 85 | |
| 86 | xmllint.1: xmllint.xml |
Daniel Veillard | 06500c8 | 2004-09-07 09:12:44 +0000 | [diff] [blame] | 87 | -@($(XSLTPROC) --nonet xmllint.xml) |
Daniel Veillard | e8ba84e | 2003-11-18 13:54:15 +0000 | [diff] [blame] | 88 | |
| 89 | xmlcatalog.1: xmlcatalog_man.xml |
Daniel Veillard | 06500c8 | 2004-09-07 09:12:44 +0000 | [diff] [blame] | 90 | -@($(XSLTPROC) --nonet xmlcatalog_man.xml) |
Daniel Veillard | 6100647 | 2002-01-21 17:31:47 +0000 | [diff] [blame] | 91 | |
Daniel Veillard | 1164e75 | 1999-02-16 16:29:17 +0000 | [diff] [blame] | 92 | clean-local: |
| 93 | rm -f *~ *.bak *.hierarchy *.signals *-unused.txt |
| 94 | |
| 95 | maintainer-clean-local: clean |
Daniel Veillard | 93d9525 | 2003-04-29 20:25:40 +0000 | [diff] [blame] | 96 | rm -rf libxml-decl-list.txt libxml-decl.txt |
Daniel Veillard | 1164e75 | 1999-02-16 16:29:17 +0000 | [diff] [blame] | 97 | |
Daniel Veillard | 1d91386 | 2003-11-21 00:28:39 +0000 | [diff] [blame] | 98 | rebuild: api all |
Daniel Veillard | 1e346af | 1999-02-22 10:33:01 +0000 | [diff] [blame] | 99 | |
Daniel Veillard | 55a9927 | 1999-02-25 11:01:29 +0000 | [diff] [blame] | 100 | install-data-local: |
Daniel Veillard | fc97906 | 2004-03-04 22:07:16 +0000 | [diff] [blame] | 101 | $(mkinstalldirs) $(DESTDIR)$(HTML_DIR) |
| 102 | -@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) |
| 103 | $(mkinstalldirs) $(DESTDIR)$(HTML_DIR)/html |
| 104 | -@INSTALL@ -m 0644 $(srcdir)/html/*.html $(DESTDIR)$(HTML_DIR)/html |
| 105 | -@INSTALL@ -m 0644 $(srcdir)/html/*.png $(DESTDIR)$(HTML_DIR)/html |
| 106 | -@INSTALL@ -m 0644 $(srcdir)/html/index.sgml $(DESTDIR)$(HTML_DIR)/html |
| 107 | $(mkinstalldirs) $(DESTDIR)$(HTML_DIR)/tutorial |
William M. Brack | fc60fc2 | 2003-10-19 11:22:27 +0000 | [diff] [blame] | 108 | -@INSTALL@ -m 0644 $(srcdir)/tutorial/*.* \ |
Daniel Veillard | fc97906 | 2004-03-04 22:07:16 +0000 | [diff] [blame] | 109 | $(DESTDIR)$(HTML_DIR)/tutorial |
| 110 | $(mkinstalldirs) $(DESTDIR)$(HTML_DIR)/tutorial/images |
William M. Brack | fc60fc2 | 2003-10-19 11:22:27 +0000 | [diff] [blame] | 111 | -@INSTALL@ -m 0644 $(srcdir)/tutorial/images/*.* \ |
Daniel Veillard | fc97906 | 2004-03-04 22:07:16 +0000 | [diff] [blame] | 112 | $(DESTDIR)$(HTML_DIR)/tutorial/images |
| 113 | $(mkinstalldirs) $(DESTDIR)$(HTML_DIR)/tutorial/images/callouts |
William M. Brack | fc60fc2 | 2003-10-19 11:22:27 +0000 | [diff] [blame] | 114 | -@INSTALL@ -m 0644 $(srcdir)/tutorial/images/callouts/*.* \ |
Daniel Veillard | fc97906 | 2004-03-04 22:07:16 +0000 | [diff] [blame] | 115 | $(DESTDIR)$(HTML_DIR)/tutorial/images/callouts |
Daniel Veillard | 55a9927 | 1999-02-25 11:01:29 +0000 | [diff] [blame] | 116 | |
Daniel Veillard | 93d9525 | 2003-04-29 20:25:40 +0000 | [diff] [blame] | 117 | .PHONY : html xml templates scan |