1999-02-16 16:29:17 +00:00
## Process this file with automake to produce Makefile.in
1999-02-06 18:12:01 +00:00
1999-02-16 16:29:17 +00:00
# The name of the module.
2001-01-25 18:54:39 +00:00
DOC_MODULE = libxml2-$( VERSION)
1999-02-16 16:29:17 +00:00
# The top-level SGML file.
DOC_MAIN_SGML_FILE = gnome-xml.sgml
# The directory containing the source code (if it contains documentation).
DOC_SOURCE_DIR = ..
2002-10-23 15:04:30 +00:00
HTML_DIR = $( datadir) /doc
1999-02-16 16:29:17 +00:00
2001-01-25 18:54:39 +00:00
TARGET_DIR = $( HTML_DIR) /$( DOC_MODULE) /html
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 \
2002-12-11 14:23:49 +00:00
html/*.sgml libxml2-api.xml parsedecl.py index.py search.php \
2003-03-16 22:32:36 +00:00
apibuild.py libxml2.xsa
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
2003-04-25 13:22:10 +00:00
all : $( PAGES ) $( top_srcdir ) /NEWS libxml 2.xsa $( man_MANS )
2001-10-24 12:35:52 +00:00
2002-01-23 12:36:34 +00:00
web : $( PAGES ) $( APIPAGES )
2001-10-24 12:35:52 +00:00
$(PAGES) : xml .html site .xsl
2002-01-02 13:13:30 +00:00
-@( if [ -x $( bindir) /xsltproc ] ; then \
$( bindir) /xsltproc --html $( top_srcdir) /doc/site.xsl $( top_srcdir) /doc/xml.html > index.html ; fi ) ;
1999-02-25 11:01:29 +00:00
2003-01-01 19:13:12 +00:00
$(top_srcdir)/NEWS : $( top_srcdir ) /doc /news .xsl $( top_srcdir ) /doc /news .html
-@( if [ -x $( bindir) /xsltproc ] ; then \
$( bindir) /xsltproc --html $( top_srcdir) /doc/news.xsl $( top_srcdir) /doc/news.html > $( top_srcdir) /NEWS ; fi ) ;
2003-03-16 22:32:36 +00:00
libxml2.xsa : $( top_srcdir ) /doc /xsa .xsl $( top_srcdir ) /doc /news .html
-@( if [ -x $( bindir) /xsltproc ] ; then \
$( bindir) /xsltproc --html $( top_srcdir) /doc/xsa.xsl $( top_srcdir) /doc/news.html > libxml2.xsa ; fi ) ;
2002-01-23 12:36:34 +00:00
$(APIPAGES) : libxml 2-refs .xml site .xsl api .xsl
-@( if [ -x $( bindir) /xsltproc ] ; then \
$( bindir) /xsltproc --html $( top_srcdir) /doc/api.xsl $( top_srcdir) /doc/xml.html ; fi ) ;
2003-04-25 13:22:10 +00:00
xmllint.1 : xmllint .xml
-@( xsltproc xmllint.xml)
xmlcatalog.1 : xmlcatalog_man .xml
-@( xsltproc xmlcatalog_man.xml)
1999-02-16 16:29:17 +00:00
scan :
2003-03-23 20:42:17 +00: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 16:29:17 +00:00
templates : scan
2002-11-19 22:28:48 +00:00
-gtkdoc-mktmpl --module= libxml
1999-02-16 16:29:17 +00:00
2002-11-19 22:28:48 +00:00
sgml : templates
-gtkdoc-mkdb --module= libxml --source-dir= $( DOC_SOURCE_DIR)
1999-02-16 16:29:17 +00:00
2002-11-19 22:28:48 +00:00
xml : sgml
2002-01-21 17:31:47 +00:00
if test -d xml ; then rm xml/* ; else mkdir xml ; fi
-@( for s in sgml/*.sgml ; do name = ` basename $$ s .sgml` ; \
2002-11-19 22:28:48 +00:00
xmllint --sgml $$ s > xml/" $$ name " .xml ; done )
2002-12-11 14:23:49 +00:00
libxml2-api.xml : apibuild .py ../include /libxml /*.h
-( ./apibuild.py)
2002-01-21 17:31:47 +00:00
2002-01-23 12:36:34 +00:00
api : libxml 2-api .xml libxml 2-refs .xml
2002-01-21 17:31:47 +00:00
1999-02-16 16:29:17 +00:00
html :
2002-01-13 13:35:00 +00:00
if test -n -d html ; then mkdir html ; fi
2001-01-27 17:50:22 +00:00
-cd html && gtkdoc-mkhtml libxml ../$( DOC_MAIN_SGML_FILE)
1999-02-16 16:29:17 +00:00
clean-local :
rm -f *~ *.bak *.hierarchy *.signals *-unused.txt
maintainer-clean-local : clean
2001-01-27 17:50:22 +00:00
rm -rf sgml html libxml-decl-list.txt libxml-decl.txt
1999-02-16 16:29:17 +00:00
2002-11-19 22:28:48 +00:00
libxml-decl-list.txt libxml-decl.txt : templates
1999-02-22 10:33:01 +00:00
2001-01-27 17:50:22 +00:00
libxml-sections.txt : scan
cp libxml-decl-list.txt libxml-sections.txt
1999-02-22 10:33:01 +00:00
2002-01-21 17:31:47 +00:00
rebuild : libxml -sections .txt templates sgml html api
1999-02-22 10:33:01 +00:00
1999-02-25 11:01:29 +00:00
install-data-local :
1999-09-04 20:50:25 +00:00
$( mkinstalldirs) $( DESTDIR) $( TARGET_DIR)
2002-09-26 17:50:03 +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) $( TARGET_DIR)
1999-07-10 12:18:15 +00:00
-@INSTALL@ -m 0644 $( srcdir) /html/*.html $( DESTDIR) $( TARGET_DIR)
-@INSTALL@ -m 0644 $( srcdir) /html/index.sgml $( DESTDIR) $( TARGET_DIR)
2001-01-27 17:50:22 +00:00
-( cd $( DESTDIR) ; gtkdoc-fixxref --module= libxml --html-dir= $( HTML_DIR) )
2002-11-23 16:23:08 +00:00
-@( tar cf - tutorial | ( cd $( DESTDIR) $( TARGET_DIR) && tar xvf -) )
1999-02-25 11:01:29 +00:00
1999-02-16 16:29:17 +00:00
.PHONY : html sgml templates scan