1999-02-16 19:29:17 +03:00
## Process this file with automake to produce Makefile.in
1999-02-06 21:12:01 +03:00
1999-02-16 19:29:17 +03:00
# The name of the module.
2001-01-25 21:54:39 +03:00
DOC_MODULE = libxml2-$( VERSION)
1999-02-16 19:29:17 +03:00
# The top-level SGML file.
2003-04-29 16:40:16 +04:00
DOC_MAIN_XML_FILE = gnome-xml.xml
1999-02-16 19:29:17 +03:00
# The directory containing the source code (if it contains documentation).
DOC_SOURCE_DIR = ..
2002-10-23 19:04:30 +04:00
HTML_DIR = $( datadir) /doc
1999-02-16 19:29:17 +03:00
2003-08-13 15:09:42 +04:00
# A file in win32 depends upon one of the doc files
WIN32_DIR = $( top_srcdir) /win32
2001-01-25 21:54:39 +03:00
TARGET_DIR = $( HTML_DIR) /$( DOC_MODULE) /html
2001-10-24 16:35:52 +04: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 16:26:00 +03:00
tree.html xmldtd.html XMLinfo.html XSLT.html
2002-01-23 15:36:34 +03:00
APIPAGES = APIconstructors.html APIfiles.html APIfunctions.html \
2002-01-23 20:58:17 +03:00
APIsymbols.html APIchunk0.html
2002-11-17 19:47:27 +03:00
EXTRA_DIST = xmlcatalog_man.xml tutorial/*.html tutorial/*.c tutorial/*.pdf \
tutorial/images/*.png tutorial/images/callouts/*.png \
2002-11-22 18:57:07 +03:00
API*.html *.1 *.xsl *.html *.gif w3c.png html/*.html \
2003-04-30 00:25:40 +04:00
html/*.png libxml2-api.xml parsedecl.py index.py search.php \
apibuild.py libxml2.xsa xmllint.xml xmlcatalog_man.xml
2002-11-22 18:57:07 +03:00
1999-02-16 19:29:17 +03:00
2001-10-30 15:51:17 +03:00
man_MANS = xmllint.1 xmlcatalog.1
2001-09-13 15:34:58 +04:00
2003-04-25 17:22:10 +04:00
all : $( PAGES ) $( top_srcdir ) /NEWS libxml 2.xsa $( man_MANS )
2001-10-24 16:35:52 +04:00
2002-01-23 15:36:34 +03:00
web : $( PAGES ) $( APIPAGES )
2001-10-24 16:35:52 +04:00
$(PAGES) : xml .html site .xsl
2002-01-02 16:13:30 +03:00
-@( if [ -x $( bindir) /xsltproc ] ; then \
2003-05-14 02:14:13 +04:00
$( bindir) /xsltproc --nonet --html $( top_srcdir) /doc/site.xsl $( top_srcdir) /doc/xml.html > index.html ; fi ) ;
2003-04-27 02:29:54 +04:00
-@( if [ -x $( bindir) /xmllint ] ; then \
2003-05-14 02:14:13 +04:00
$( bindir) /xmllint --nonet --valid --noout $( PAGES) ; fi ) ;
1999-02-25 14:01:29 +03:00
2003-01-01 22:13:12 +03:00
$(top_srcdir)/NEWS : $( top_srcdir ) /doc /news .xsl $( top_srcdir ) /doc /news .html
-@( if [ -x $( bindir) /xsltproc ] ; then \
2003-05-14 02:14:13 +04:00
$( bindir) /xsltproc --nonet $( top_srcdir) /doc/news.xsl $( top_srcdir) /doc/news.html > $( top_srcdir) /NEWS ; fi ) ;
2003-01-01 22:13:12 +03:00
2003-03-17 01:32:36 +03:00
libxml2.xsa : $( top_srcdir ) /doc /xsa .xsl $( top_srcdir ) /doc /news .html
-@( if [ -x $( bindir) /xsltproc ] ; then \
2003-05-14 02:14:13 +04:00
$( bindir) /xsltproc --nonet $( top_srcdir) /doc/xsa.xsl $( top_srcdir) /doc/news.html > libxml2.xsa ; fi ) ;
2003-03-17 01:32:36 +03:00
2002-01-23 15:36:34 +03:00
$(APIPAGES) : libxml 2-refs .xml site .xsl api .xsl
-@( if [ -x $( bindir) /xsltproc ] ; then \
2003-05-14 02:14:13 +04:00
$( bindir) /xsltproc --nonet --html $( top_srcdir) /doc/api.xsl $( top_srcdir) /doc/xml.html ; fi ) ;
2002-01-23 15:36:34 +03:00
2003-04-25 17:22:10 +04:00
xmllint.1 : xmllint .xml
2003-05-14 02:14:13 +04:00
-@( xsltproc --nonet xmllint.xml)
2003-04-25 17:22:10 +04:00
xmlcatalog.1 : xmlcatalog_man .xml
2003-05-14 02:14:13 +04:00
-@( xsltproc --nonet xmlcatalog_man.xml)
2003-04-25 17:22:10 +04:00
1999-02-16 19:29:17 +03:00
scan :
2003-06-13 16:30:10 +04:00
-gtkdoc-scan --module= libxml --source-dir= $( DOC_SOURCE_DIR) --ignore-headers= "acconfig.h config.h win32config.h trio.h triostr.h triop.h config-mac.h XMLTestPrefix2.h XMLTestPrefix.h triodef.h trionan.h xlink.h libxml.h libxml2-py.h libxml_wrap.h"
1999-02-16 19:29:17 +03:00
templates : scan
2003-06-13 16:30:10 +04:00
-gtkdoc-mktmpl --module= libxml
1999-02-16 19:29:17 +03:00
2003-04-30 00:25:40 +04:00
xml : templates
2003-06-13 16:30:10 +04:00
if test -d xml ; then rm -f xml/* ; else mkdir xml ; fi
-gtkdoc-mkdb --module= libxml --source-dir= $( DOC_SOURCE_DIR) --output-format= xml --main-sgml-file= $( DOC_MAIN_XML_FILE)
1999-02-16 19:29:17 +03:00
2002-11-20 01:28:48 +03:00
2003-08-15 11:27:40 +04:00
libxml2-api.xml : apibuild .py ../include /libxml /*.h ../*.c
2002-12-11 17:23:49 +03:00
-( ./apibuild.py)
2002-01-21 20:31:47 +03:00
2003-08-15 11:27:40 +04:00
$(WIN32_DIR)/libxml2.def.src : libxml 2-api .xml
2003-08-13 15:09:42 +04:00
-@( if [ -x $( bindir) /xsltproc ] ; then \
$( bindir) /xsltproc -o $( WIN32_DIR) /libxml2.def.src \
--nonet $( WIN32_DIR) /defgen.xsl libxml2-api.xml ; fi )
api : libxml 2-api .xml libxml 2-refs .xml $( WIN 32_DIR ) /libxml 2.def .src
2002-01-21 20:31:47 +03:00
1999-02-16 19:29:17 +03:00
html :
2002-01-13 16:35:00 +03:00
if test -n -d html ; then mkdir html ; fi
2003-04-29 16:40:16 +04:00
-cd html && gtkdoc-mkhtml libxml ../$( DOC_MAIN_XML_FILE)
1999-02-16 19:29:17 +03:00
clean-local :
rm -f *~ *.bak *.hierarchy *.signals *-unused.txt
maintainer-clean-local : clean
2003-04-30 00:25:40 +04:00
rm -rf libxml-decl-list.txt libxml-decl.txt
1999-02-16 19:29:17 +03:00
2002-11-20 01:28:48 +03:00
libxml-decl-list.txt libxml-decl.txt : templates
1999-02-22 13:33:01 +03:00
2001-01-27 20:50:22 +03:00
libxml-sections.txt : scan
cp libxml-decl-list.txt libxml-sections.txt
1999-02-22 13:33:01 +03:00
2003-04-30 00:25:40 +04:00
rebuild : libxml -sections .txt templates xml html api
1999-02-22 13:33:01 +03:00
1999-02-25 14:01:29 +03:00
install-data-local :
1999-09-05 00:50:25 +04:00
$( mkinstalldirs) $( DESTDIR) $( TARGET_DIR)
2002-09-26 21:50:03 +04: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) $( TARGET_DIR)
1999-07-10 16:18:15 +04:00
-@INSTALL@ -m 0644 $( srcdir) /html/*.html $( DESTDIR) $( TARGET_DIR)
-@INSTALL@ -m 0644 $( srcdir) /html/index.sgml $( DESTDIR) $( TARGET_DIR)
2003-06-13 16:30:10 +04:00
-( cd $( DESTDIR) ; gtkdoc-fixxref --module= libxml --html-dir= $( HTML_DIR) )
2002-11-23 19:23:08 +03:00
-@( tar cf - tutorial | ( cd $( DESTDIR) $( TARGET_DIR) && tar xvf -) )
1999-02-25 14:01:29 +03:00
2003-04-30 00:25:40 +04:00
.PHONY : html xml templates scan