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 \ |
Daniel Veillard | 4dd115c | 2009-09-23 18:32:42 +0200 | [diff] [blame] | 24 | README.docs symbols.xml |
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 | b40744e | 2008-10-17 13:26:44 +0000 | [diff] [blame] | 29 | if REBUILD_DOCS |
William M. Brack | 106cad6 | 2004-12-23 15:56:12 +0000 | [diff] [blame] | 30 | all: web $(top_builddir)/NEWS libxml2.xsa $(man_MANS) |
Daniel Veillard | b40744e | 2008-10-17 13:26:44 +0000 | [diff] [blame] | 31 | else |
| 32 | all: |
| 33 | endif |
Daniel Veillard | c948420 | 2001-10-24 12:35:52 +0000 | [diff] [blame] | 34 | |
Daniel Veillard | 9a15b30 | 2009-08-07 16:27:15 +0200 | [diff] [blame] | 35 | api: libxml2-api.xml libxml2-refs.xml $(APIPAGES) $(srcdir)/html/index.html $(WIN32_DIR)/libxml2.def.src ../elfgcchack.h $(srcdir)/site.xsl |
Daniel Veillard | 1d91386 | 2003-11-21 00:28:39 +0000 | [diff] [blame] | 36 | |
| 37 | web: $(PAGES) |
Daniel Veillard | 3bf65be | 2002-01-23 12:36:34 +0000 | [diff] [blame] | 38 | |
Daniel Veillard | a235132 | 2004-06-27 12:08:10 +0000 | [diff] [blame] | 39 | ../elfgcchack.h: $(srcdir)/elfgcchack.xsl $(srcdir)/libxml2-api.xml |
Daniel Veillard | 06500c8 | 2004-09-07 09:12:44 +0000 | [diff] [blame] | 40 | -@(if [ -x $(XSLTPROC) ] ; then \ |
Daniel Veillard | a235132 | 2004-06-27 12:08:10 +0000 | [diff] [blame] | 41 | echo "Rebuilding the elfgcchack.h header" ; \ |
Daniel Veillard | 06500c8 | 2004-09-07 09:12:44 +0000 | [diff] [blame] | 42 | $(XSLTPROC) --nonet $(srcdir)/elfgcchack.xsl $(srcdir)/libxml2-api.xml > elfgcchack.h ; \ |
Daniel Veillard | a235132 | 2004-06-27 12:08:10 +0000 | [diff] [blame] | 43 | if [ "`diff -q elfgcchack.h ../elfgcchack.h`" ] ; then \ |
Daniel Veillard | 01fa615 | 2004-06-29 17:04:39 +0000 | [diff] [blame] | 44 | echo "updating ../elfgcchack.h"; \ |
Daniel Veillard | a235132 | 2004-06-27 12:08:10 +0000 | [diff] [blame] | 45 | cp elfgcchack.h ../elfgcchack.h; \ |
| 46 | fi ; rm -f elfgcchack.h ; fi ); |
| 47 | |
Daniel Veillard | dde6408 | 2011-03-23 08:12:26 +0800 | [diff] [blame^] | 48 | $(PAGES): xml.html $(srcdir)/site.xsl |
Daniel Veillard | 06500c8 | 2004-09-07 09:12:44 +0000 | [diff] [blame] | 49 | -@(if [ -x $(XSLTPROC) ] ; then \ |
Daniel Veillard | e8ba84e | 2003-11-18 13:54:15 +0000 | [diff] [blame] | 50 | echo "Rebuilding the HTML Web pages from xml.html" ; \ |
Daniel Veillard | 06500c8 | 2004-09-07 09:12:44 +0000 | [diff] [blame] | 51 | $(XSLTPROC) --nonet --html $(top_srcdir)/doc/site.xsl $(top_srcdir)/doc/xml.html > index.html ; fi ); |
| 52 | -@(if [ -x $(XMLLINT) ] ; then \ |
Daniel Veillard | e8ba84e | 2003-11-18 13:54:15 +0000 | [diff] [blame] | 53 | echo "Validating the HTML Web pages" ; \ |
Daniel Veillard | 06500c8 | 2004-09-07 09:12:44 +0000 | [diff] [blame] | 54 | $(XMLLINT) --nonet --valid --noout $(PAGES) ; fi ); |
Daniel Veillard | 55a9927 | 1999-02-25 11:01:29 +0000 | [diff] [blame] | 55 | |
William M. Brack | 106cad6 | 2004-12-23 15:56:12 +0000 | [diff] [blame] | 56 | $(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] | 57 | -@(if [ -x $(XSLTPROC) ] ; then \ |
William M. Brack | 106cad6 | 2004-12-23 15:56:12 +0000 | [diff] [blame] | 58 | $(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] | 59 | |
Daniel Veillard | b4d30b6 | 2003-03-16 22:32:36 +0000 | [diff] [blame] | 60 | libxml2.xsa: $(top_srcdir)/doc/xsa.xsl $(top_srcdir)/doc/news.html |
Daniel Veillard | 06500c8 | 2004-09-07 09:12:44 +0000 | [diff] [blame] | 61 | -@(if [ -x $(XSLTPROC) ] ; then \ |
Daniel Veillard | eebd633 | 2004-08-26 10:30:44 +0000 | [diff] [blame] | 62 | echo "Rebuilding the NEWS file" ; \ |
Daniel Veillard | 06500c8 | 2004-09-07 09:12:44 +0000 | [diff] [blame] | 63 | $(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] | 64 | |
Daniel Veillard | e8ba84e | 2003-11-18 13:54:15 +0000 | [diff] [blame] | 65 | $(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] | 66 | -@(if [ -x $(XSLTPROC) ] ; then \ |
Daniel Veillard | e8ba84e | 2003-11-18 13:54:15 +0000 | [diff] [blame] | 67 | echo "Rebuilding the HTML API pages from libxml2-refs.xml" ; \ |
Daniel Veillard | 06500c8 | 2004-09-07 09:12:44 +0000 | [diff] [blame] | 68 | $(XSLTPROC) --nonet --html $(top_srcdir)/doc/api.xsl \ |
Daniel Veillard | e8ba84e | 2003-11-18 13:54:15 +0000 | [diff] [blame] | 69 | $(top_srcdir)/doc/xml.html ; fi ); |
Daniel Veillard | 06500c8 | 2004-09-07 09:12:44 +0000 | [diff] [blame] | 70 | -@(if [ -x $(XMLLINT) ] ; then \ |
Daniel Veillard | e8ba84e | 2003-11-18 13:54:15 +0000 | [diff] [blame] | 71 | echo "Validating the HTML API pages" ; \ |
Daniel Veillard | 06500c8 | 2004-09-07 09:12:44 +0000 | [diff] [blame] | 72 | $(XMLLINT) --nonet --valid --noout API*.html ; fi ); |
Daniel Veillard | 3bf65be | 2002-01-23 12:36:34 +0000 | [diff] [blame] | 73 | |
Daniel Veillard | e8ba84e | 2003-11-18 13:54:15 +0000 | [diff] [blame] | 74 | $(srcdir)/html/index.html: libxml2-api.xml $(srcdir)/newapi.xsl |
Daniel Veillard | 06500c8 | 2004-09-07 09:12:44 +0000 | [diff] [blame] | 75 | -@(if [ -x $(XSLTPROC) ] ; then \ |
Daniel Veillard | 2925c0a | 2003-11-17 13:58:17 +0000 | [diff] [blame] | 76 | echo "Rebuilding the HTML pages from the XML API" ; \ |
Daniel Veillard | 06500c8 | 2004-09-07 09:12:44 +0000 | [diff] [blame] | 77 | $(XSLTPROC) --nonet $(srcdir)/newapi.xsl libxml2-api.xml ; fi ) |
| 78 | -@(if [ -x $(XMLLINT) ] ; then \ |
Daniel Veillard | 2925c0a | 2003-11-17 13:58:17 +0000 | [diff] [blame] | 79 | echo "Validating the resulting XHTML pages" ; \ |
Daniel Veillard | 06500c8 | 2004-09-07 09:12:44 +0000 | [diff] [blame] | 80 | $(XMLLINT) --nonet --valid --noout html/*.html ; fi ); |
Daniel Veillard | 817e70b | 2002-11-19 22:28:48 +0000 | [diff] [blame] | 81 | |
Daniel Veillard | e92bf5d | 2005-02-04 17:28:19 +0000 | [diff] [blame] | 82 | wiki: 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. Brack | 7a82165 | 2003-08-15 07:27:40 +0000 | [diff] [blame] | 87 | $(WIN32_DIR)/libxml2.def.src: libxml2-api.xml |
Daniel Veillard | 06500c8 | 2004-09-07 09:12:44 +0000 | [diff] [blame] | 88 | -@(if [ -x $(XSLTPROC) ] ; then \ |
| 89 | $(XSLTPROC) -o $(WIN32_DIR)/libxml2.def.src \ |
William M. Brack | 476cd96 | 2003-08-13 11:09:42 +0000 | [diff] [blame] | 90 | --nonet $(WIN32_DIR)/defgen.xsl libxml2-api.xml ; fi ) |
| 91 | |
Daniel Veillard | f609d74 | 2009-08-21 15:16:46 +0200 | [diff] [blame] | 92 | libxml2-api.xml libxml2-refs.xml ../libxml2.syms: apibuild.py symbols.xml syms.xsl checkapisym.xsl ../include/libxml/*.h ../*.c |
Daniel Veillard | e8ba84e | 2003-11-18 13:54:15 +0000 | [diff] [blame] | 93 | -(./apibuild.py) |
Daniel Veillard | f447ab8 | 2009-08-24 19:47:00 +0200 | [diff] [blame] | 94 | ($(XSLTPROC) checkapisym.xsl libxml2-api.xml) |
| 95 | ($(XSLTPROC) -o ../libxml2.syms syms.xsl symbols.xml) |
Daniel Veillard | 2ae1338 | 2005-01-25 23:45:06 +0000 | [diff] [blame] | 96 | -@(cd .. ; $(MAKE) rebuild_testapi) |
| 97 | |
Daniel Veillard | e8ba84e | 2003-11-18 13:54:15 +0000 | [diff] [blame] | 98 | |
| 99 | xmllint.1: xmllint.xml |
Daniel Veillard | 06500c8 | 2004-09-07 09:12:44 +0000 | [diff] [blame] | 100 | -@($(XSLTPROC) --nonet xmllint.xml) |
Daniel Veillard | e8ba84e | 2003-11-18 13:54:15 +0000 | [diff] [blame] | 101 | |
| 102 | xmlcatalog.1: xmlcatalog_man.xml |
Daniel Veillard | 06500c8 | 2004-09-07 09:12:44 +0000 | [diff] [blame] | 103 | -@($(XSLTPROC) --nonet xmlcatalog_man.xml) |
Daniel Veillard | 6100647 | 2002-01-21 17:31:47 +0000 | [diff] [blame] | 104 | |
Daniel Veillard | 1164e75 | 1999-02-16 16:29:17 +0000 | [diff] [blame] | 105 | clean-local: |
| 106 | rm -f *~ *.bak *.hierarchy *.signals *-unused.txt |
| 107 | |
William M. Brack | 5a9c1fd | 2004-12-17 21:38:09 +0000 | [diff] [blame] | 108 | maintainer-clean-local: clean-local |
Daniel Veillard | 93d9525 | 2003-04-29 20:25:40 +0000 | [diff] [blame] | 109 | rm -rf libxml-decl-list.txt libxml-decl.txt |
Daniel Veillard | 1164e75 | 1999-02-16 16:29:17 +0000 | [diff] [blame] | 110 | |
Daniel Veillard | 1d91386 | 2003-11-21 00:28:39 +0000 | [diff] [blame] | 111 | rebuild: api all |
Daniel Veillard | 1e346af | 1999-02-22 10:33:01 +0000 | [diff] [blame] | 112 | |
Daniel Veillard | 55a9927 | 1999-02-25 11:01:29 +0000 | [diff] [blame] | 113 | install-data-local: |
Adrian Bunk | 64b0d60 | 2010-11-04 09:43:31 +0100 | [diff] [blame] | 114 | @MKDIR_P@ $(DESTDIR)$(HTML_DIR) |
Daniel Veillard | fc97906 | 2004-03-04 22:07:16 +0000 | [diff] [blame] | 115 | -@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 Bunk | 64b0d60 | 2010-11-04 09:43:31 +0100 | [diff] [blame] | 116 | @MKDIR_P@ $(DESTDIR)$(HTML_DIR)/html |
Daniel Veillard | fc97906 | 2004-03-04 22:07:16 +0000 | [diff] [blame] | 117 | -@INSTALL@ -m 0644 $(srcdir)/html/*.html $(DESTDIR)$(HTML_DIR)/html |
| 118 | -@INSTALL@ -m 0644 $(srcdir)/html/*.png $(DESTDIR)$(HTML_DIR)/html |
Adrian Bunk | 64b0d60 | 2010-11-04 09:43:31 +0100 | [diff] [blame] | 119 | @MKDIR_P@ $(DESTDIR)$(HTML_DIR)/tutorial |
William M. Brack | fc60fc2 | 2003-10-19 11:22:27 +0000 | [diff] [blame] | 120 | -@INSTALL@ -m 0644 $(srcdir)/tutorial/*.* \ |
Daniel Veillard | fc97906 | 2004-03-04 22:07:16 +0000 | [diff] [blame] | 121 | $(DESTDIR)$(HTML_DIR)/tutorial |
Adrian Bunk | 64b0d60 | 2010-11-04 09:43:31 +0100 | [diff] [blame] | 122 | @MKDIR_P@ $(DESTDIR)$(HTML_DIR)/tutorial/images |
William M. Brack | fc60fc2 | 2003-10-19 11:22:27 +0000 | [diff] [blame] | 123 | -@INSTALL@ -m 0644 $(srcdir)/tutorial/images/*.* \ |
Daniel Veillard | fc97906 | 2004-03-04 22:07:16 +0000 | [diff] [blame] | 124 | $(DESTDIR)$(HTML_DIR)/tutorial/images |
Adrian Bunk | 64b0d60 | 2010-11-04 09:43:31 +0100 | [diff] [blame] | 125 | @MKDIR_P@ $(DESTDIR)$(HTML_DIR)/tutorial/images/callouts |
William M. Brack | fc60fc2 | 2003-10-19 11:22:27 +0000 | [diff] [blame] | 126 | -@INSTALL@ -m 0644 $(srcdir)/tutorial/images/callouts/*.* \ |
Daniel Veillard | fc97906 | 2004-03-04 22:07:16 +0000 | [diff] [blame] | 127 | $(DESTDIR)$(HTML_DIR)/tutorial/images/callouts |
Daniel Veillard | 55a9927 | 1999-02-25 11:01:29 +0000 | [diff] [blame] | 128 | |
Daniel Veillard | 93d9525 | 2003-04-29 20:25:40 +0000 | [diff] [blame] | 129 | .PHONY : html xml templates scan |