1999-02-16 16:29:17 +00:00
## Process this file with automake to produce Makefile.in
2005-09-12 09:20:31 +00:00
SUBDIRS = devhelp examples
1999-02-16 16:29:17 +00:00
# The top-level SGML file.
2003-04-29 12:40:16 +00:00
DOC_MAIN_XML_FILE = gnome-xml.xml
1999-02-16 16:29:17 +00:00
# The directory containing the source code (if it contains documentation).
DOC_SOURCE_DIR = ..
2003-08-13 11:09:42 +00:00
# A file in win32 depends upon one of the doc files
WIN32_DIR = $( top_srcdir) /win32
2001-10-24 12:35:52 +00:00
PAGES = architecture.html bugs.html contribs.html docs.html DOM.html \
downloads.html entities.html example.html help.html index.html \
interface.html intro.html library.html namespaces.html news.html \
2002-01-08 13:26:00 +00:00
tree.html xmldtd.html XMLinfo.html XSLT.html
2002-01-23 12:36:34 +00:00
APIPAGES = APIconstructors.html APIfiles.html APIfunctions.html \
2002-01-23 17:58:17 +00:00
APIsymbols.html APIchunk0.html
2002-11-17 16:47:27 +00:00
EXTRA_DIST = xmlcatalog_man.xml tutorial/*.html tutorial/*.c tutorial/*.pdf \
tutorial/images/*.png tutorial/images/callouts/*.png \
2002-11-22 15:57:07 +00:00
API*.html *.1 *.xsl *.html *.gif w3c.png html/*.html \
2003-12-10 10:52:08 +00:00
html/*.png libxml2-api.xml index.py search.php \
2003-09-01 04:58:15 +00:00
apibuild.py libxml2.xsa xmllint.xml xmlcatalog_man.xml \
2009-09-23 18:32:42 +02:00
README.docs symbols.xml
2002-11-22 15:57:07 +00:00
1999-02-16 16:29:17 +00:00
2001-10-30 12:51:17 +00:00
man_MANS = xmllint.1 xmlcatalog.1
2001-09-13 11:34:58 +00:00
2008-10-17 13:26:44 +00:00
i f R E B U I L D _ D O C S
2004-12-23 15:56:12 +00:00
all : web $( top_builddir ) /NEWS libxml 2.xsa $( man_MANS )
2008-10-17 13:26:44 +00:00
e l s e
all :
e n d i f
2001-10-24 12:35:52 +00:00
2009-08-07 16:27:15 +02:00
api : libxml 2-api .xml libxml 2-refs .xml $( APIPAGES ) $( srcdir ) /html /index .html $( WIN 32_DIR ) /libxml 2.def .src ../elfgcchack .h $( srcdir ) /site .xsl
2003-11-21 00:28:39 +00:00
web : $( PAGES )
2002-01-23 12:36:34 +00:00
2004-06-27 12:08:10 +00:00
../elfgcchack.h : $( srcdir ) /elfgcchack .xsl $( srcdir ) /libxml 2-api .xml
2004-09-07 09:12:44 +00:00
-@( if [ -x $( XSLTPROC) ] ; then \
2004-06-27 12:08:10 +00:00
echo "Rebuilding the elfgcchack.h header" ; \
2004-09-07 09:12:44 +00:00
$( XSLTPROC) --nonet $( srcdir) /elfgcchack.xsl $( srcdir) /libxml2-api.xml > elfgcchack.h ; \
2004-06-27 12:08:10 +00:00
if [ "`diff -q elfgcchack.h ../elfgcchack.h`" ] ; then \
2004-06-29 17:04:39 +00:00
echo "updating ../elfgcchack.h" ; \
2004-06-27 12:08:10 +00:00
cp elfgcchack.h ../elfgcchack.h; \
fi ; rm -f elfgcchack.h ; fi ) ;
2011-03-23 08:12:26 +08:00
$(PAGES) : xml .html $( srcdir ) /site .xsl
2004-09-07 09:12:44 +00:00
-@( if [ -x $( XSLTPROC) ] ; then \
2003-11-18 13:54:15 +00:00
echo "Rebuilding the HTML Web pages from xml.html" ; \
2004-09-07 09:12:44 +00:00
$( XSLTPROC) --nonet --html $( top_srcdir) /doc/site.xsl $( top_srcdir) /doc/xml.html > index.html ; fi ) ;
-@( if [ -x $( XMLLINT) ] ; then \
2003-11-18 13:54:15 +00:00
echo "Validating the HTML Web pages" ; \
2004-09-07 09:12:44 +00:00
$( XMLLINT) --nonet --valid --noout $( PAGES) ; fi ) ;
1999-02-25 11:01:29 +00:00
2004-12-23 15:56:12 +00:00
$(top_builddir)/NEWS : $( top_srcdir ) /doc /news .xsl $( top_srcdir ) /doc /news .html
2004-09-07 09:12:44 +00:00
-@( if [ -x $( XSLTPROC) ] ; then \
2004-12-23 15:56:12 +00:00
$( XSLTPROC) --nonet $( top_srcdir) /doc/news.xsl $( top_srcdir) /doc/news.html > $( top_builddir) /NEWS ; fi ) ;
2003-01-01 19:13:12 +00:00
2003-03-16 22:32:36 +00:00
libxml2.xsa : $( top_srcdir ) /doc /xsa .xsl $( top_srcdir ) /doc /news .html
2004-09-07 09:12:44 +00:00
-@( if [ -x $( XSLTPROC) ] ; then \
2004-08-26 10:30:44 +00:00
echo "Rebuilding the NEWS file" ; \
2004-09-07 09:12:44 +00:00
$( XSLTPROC) --nonet $( top_srcdir) /doc/xsa.xsl $( top_srcdir) /doc/news.html > libxml2.xsa ; fi ) ;
2003-03-16 22:32:36 +00:00
2003-11-18 13:54:15 +00:00
$(APIPAGES) : libxml 2-api .xml libxml 2-refs .xml $( top_srcdir ) /doc /site .xsl $( top_srcdir ) /doc /api .xsl
2004-09-07 09:12:44 +00:00
-@( if [ -x $( XSLTPROC) ] ; then \
2003-11-18 13:54:15 +00:00
echo "Rebuilding the HTML API pages from libxml2-refs.xml" ; \
2004-09-07 09:12:44 +00:00
$( XSLTPROC) --nonet --html $( top_srcdir) /doc/api.xsl \
2003-11-18 13:54:15 +00:00
$( top_srcdir) /doc/xml.html ; fi ) ;
2004-09-07 09:12:44 +00:00
-@( if [ -x $( XMLLINT) ] ; then \
2003-11-18 13:54:15 +00:00
echo "Validating the HTML API pages" ; \
2004-09-07 09:12:44 +00:00
$( XMLLINT) --nonet --valid --noout API*.html ; fi ) ;
2003-04-25 13:22:10 +00:00
2003-11-18 13:54:15 +00:00
$(srcdir)/html/index.html : libxml 2-api .xml $( srcdir ) /newapi .xsl
2004-09-07 09:12:44 +00:00
-@( if [ -x $( XSLTPROC) ] ; then \
2003-11-17 13:58:17 +00:00
echo "Rebuilding the HTML pages from the XML API" ; \
2004-09-07 09:12:44 +00:00
$( XSLTPROC) --nonet $( srcdir) /newapi.xsl libxml2-api.xml ; fi )
-@( if [ -x $( XMLLINT) ] ; then \
2003-11-17 13:58:17 +00:00
echo "Validating the resulting XHTML pages" ; \
2004-09-07 09:12:44 +00:00
$( XMLLINT) --nonet --valid --noout html/*.html ; fi ) ;
2002-11-19 22:28:48 +00:00
2005-02-04 17:28:19 +00:00
wiki : libxml 2-api .xml $( srcdir ) /wiki .xsl
-@( if [ -x $( XSLTPROC) ] ; then \
echo "Rebuilding the wiki HTML pages from the XML API" ; \
$( XSLTPROC) --nonet $( srcdir) /wiki.xsl libxml2-api.xml; fi )
2003-08-15 07:27:40 +00:00
$(WIN32_DIR)/libxml2.def.src : libxml 2-api .xml
2004-09-07 09:12:44 +00:00
-@( if [ -x $( XSLTPROC) ] ; then \
$( XSLTPROC) -o $( WIN32_DIR) /libxml2.def.src \
2003-08-13 11:09:42 +00:00
--nonet $( WIN32_DIR) /defgen.xsl libxml2-api.xml ; fi )
2009-08-21 15:16:46 +02:00
libxml2-api.xml libxml2-refs.xml ../libxml2.syms : apibuild .py symbols .xml syms .xsl checkapisym .xsl ../include /libxml /*.h ../*.c
2003-11-18 13:54:15 +00:00
-( ./apibuild.py)
2009-08-24 19:47:00 +02:00
( $( XSLTPROC) checkapisym.xsl libxml2-api.xml)
( $( XSLTPROC) -o ../libxml2.syms syms.xsl symbols.xml)
2005-01-25 23:45:06 +00:00
-@( cd .. ; $( MAKE) rebuild_testapi)
2003-11-18 13:54:15 +00:00
xmllint.1 : xmllint .xml
2004-09-07 09:12:44 +00:00
-@( $( XSLTPROC) --nonet xmllint.xml)
2003-11-18 13:54:15 +00:00
xmlcatalog.1 : xmlcatalog_man .xml
2004-09-07 09:12:44 +00:00
-@( $( XSLTPROC) --nonet xmlcatalog_man.xml)
2002-01-21 17:31:47 +00:00
1999-02-16 16:29:17 +00:00
clean-local :
rm -f *~ *.bak *.hierarchy *.signals *-unused.txt
2004-12-17 21:38:09 +00:00
maintainer-clean-local : clean -local
2003-04-29 20:25:40 +00:00
rm -rf libxml-decl-list.txt libxml-decl.txt
1999-02-16 16:29:17 +00:00
2003-11-21 00:28:39 +00:00
rebuild : api all
1999-02-22 10:33:01 +00:00
1999-02-25 11:01:29 +00:00
install-data-local :
2010-11-04 09:43:31 +01:00
@MKDIR_P@ $( DESTDIR) $( HTML_DIR)
2004-03-04 22:07:16 +00:00
-@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)
2010-11-04 09:43:31 +01:00
@MKDIR_P@ $( DESTDIR) $( HTML_DIR) /html
2004-03-04 22:07:16 +00:00
-@INSTALL@ -m 0644 $( srcdir) /html/*.html $( DESTDIR) $( HTML_DIR) /html
-@INSTALL@ -m 0644 $( srcdir) /html/*.png $( DESTDIR) $( HTML_DIR) /html
2010-11-04 09:43:31 +01:00
@MKDIR_P@ $( DESTDIR) $( HTML_DIR) /tutorial
2003-10-19 11:22:27 +00:00
-@INSTALL@ -m 0644 $( srcdir) /tutorial/*.* \
2004-03-04 22:07:16 +00:00
$( DESTDIR) $( HTML_DIR) /tutorial
2010-11-04 09:43:31 +01:00
@MKDIR_P@ $( DESTDIR) $( HTML_DIR) /tutorial/images
2003-10-19 11:22:27 +00:00
-@INSTALL@ -m 0644 $( srcdir) /tutorial/images/*.* \
2004-03-04 22:07:16 +00:00
$( DESTDIR) $( HTML_DIR) /tutorial/images
2010-11-04 09:43:31 +01:00
@MKDIR_P@ $( DESTDIR) $( HTML_DIR) /tutorial/images/callouts
2003-10-19 11:22:27 +00:00
-@INSTALL@ -m 0644 $( srcdir) /tutorial/images/callouts/*.* \
2004-03-04 22:07:16 +00:00
$( DESTDIR) $( HTML_DIR) /tutorial/images/callouts
1999-02-25 11:01:29 +00:00
2003-04-29 20:25:40 +00:00
.PHONY : html xml templates scan