1999-02-16 19:29:17 +03:00
## Process this file with automake to produce Makefile.in
2005-09-12 13:20:31 +04:00
SUBDIRS = devhelp examples
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 = ..
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-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-12-10 13:52:08 +03:00
html/*.png libxml2-api.xml index.py search.php \
2003-09-01 08:58:15 +04:00
apibuild.py libxml2.xsa xmllint.xml xmlcatalog_man.xml \
README.docs
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
2004-12-23 18:56:12 +03:00
all : web $( top_builddir ) /NEWS libxml 2.xsa $( man_MANS )
2001-10-24 16:35:52 +04:00
2004-06-27 16:08:10 +04:00
api : libxml 2-api .xml libxml 2-refs .xml $( APIPAGES ) $( srcdir ) /html /index .html $( WIN 32_DIR ) /libxml 2.def .src ../elfgcchack .h
2003-11-21 03:28:39 +03:00
web : $( PAGES )
2002-01-23 15:36:34 +03:00
2004-06-27 16:08:10 +04:00
../elfgcchack.h : $( srcdir ) /elfgcchack .xsl $( srcdir ) /libxml 2-api .xml
2004-09-07 13:12:44 +04:00
-@( if [ -x $( XSLTPROC) ] ; then \
2004-06-27 16:08:10 +04:00
echo "Rebuilding the elfgcchack.h header" ; \
2004-09-07 13:12:44 +04:00
$( XSLTPROC) --nonet $( srcdir) /elfgcchack.xsl $( srcdir) /libxml2-api.xml > elfgcchack.h ; \
2004-06-27 16:08:10 +04:00
if [ "`diff -q elfgcchack.h ../elfgcchack.h`" ] ; then \
2004-06-29 21:04:39 +04:00
echo "updating ../elfgcchack.h" ; \
2004-06-27 16:08:10 +04:00
cp elfgcchack.h ../elfgcchack.h; \
fi ; rm -f elfgcchack.h ; fi ) ;
2001-10-24 16:35:52 +04:00
$(PAGES) : xml .html site .xsl
2004-09-07 13:12:44 +04:00
-@( if [ -x $( XSLTPROC) ] ; then \
2003-11-18 16:54:15 +03:00
echo "Rebuilding the HTML Web pages from xml.html" ; \
2004-09-07 13:12:44 +04:00
$( XSLTPROC) --nonet --html $( top_srcdir) /doc/site.xsl $( top_srcdir) /doc/xml.html > index.html ; fi ) ;
-@( if [ -x $( XMLLINT) ] ; then \
2003-11-18 16:54:15 +03:00
echo "Validating the HTML Web pages" ; \
2004-09-07 13:12:44 +04:00
$( XMLLINT) --nonet --valid --noout $( PAGES) ; fi ) ;
1999-02-25 14:01:29 +03:00
2004-12-23 18:56:12 +03:00
$(top_builddir)/NEWS : $( top_srcdir ) /doc /news .xsl $( top_srcdir ) /doc /news .html
2004-09-07 13:12:44 +04:00
-@( if [ -x $( XSLTPROC) ] ; then \
2004-12-23 18:56:12 +03:00
$( XSLTPROC) --nonet $( top_srcdir) /doc/news.xsl $( top_srcdir) /doc/news.html > $( top_builddir) /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
2004-09-07 13:12:44 +04:00
-@( if [ -x $( XSLTPROC) ] ; then \
2004-08-26 14:30:44 +04:00
echo "Rebuilding the NEWS file" ; \
2004-09-07 13:12:44 +04:00
$( XSLTPROC) --nonet $( top_srcdir) /doc/xsa.xsl $( top_srcdir) /doc/news.html > libxml2.xsa ; fi ) ;
2003-03-17 01:32:36 +03:00
2003-11-18 16:54:15 +03:00
$(APIPAGES) : libxml 2-api .xml libxml 2-refs .xml $( top_srcdir ) /doc /site .xsl $( top_srcdir ) /doc /api .xsl
2004-09-07 13:12:44 +04:00
-@( if [ -x $( XSLTPROC) ] ; then \
2003-11-18 16:54:15 +03:00
echo "Rebuilding the HTML API pages from libxml2-refs.xml" ; \
2004-09-07 13:12:44 +04:00
$( XSLTPROC) --nonet --html $( top_srcdir) /doc/api.xsl \
2003-11-18 16:54:15 +03:00
$( top_srcdir) /doc/xml.html ; fi ) ;
2004-09-07 13:12:44 +04:00
-@( if [ -x $( XMLLINT) ] ; then \
2003-11-18 16:54:15 +03:00
echo "Validating the HTML API pages" ; \
2004-09-07 13:12:44 +04:00
$( XMLLINT) --nonet --valid --noout API*.html ; fi ) ;
2003-04-25 17:22:10 +04:00
2003-11-18 16:54:15 +03:00
$(srcdir)/html/index.html : libxml 2-api .xml $( srcdir ) /newapi .xsl
2004-09-07 13:12:44 +04:00
-@( if [ -x $( XSLTPROC) ] ; then \
2003-11-17 16:58:17 +03:00
echo "Rebuilding the HTML pages from the XML API" ; \
2004-09-07 13:12:44 +04:00
$( XSLTPROC) --nonet $( srcdir) /newapi.xsl libxml2-api.xml ; fi )
-@( if [ -x $( XMLLINT) ] ; then \
2003-11-17 16:58:17 +03:00
echo "Validating the resulting XHTML pages" ; \
2004-09-07 13:12:44 +04:00
$( XMLLINT) --nonet --valid --noout html/*.html ; fi ) ;
2002-11-20 01:28:48 +03:00
2005-02-04 20:28:19 +03: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 11:27:40 +04:00
$(WIN32_DIR)/libxml2.def.src : libxml 2-api .xml
2004-09-07 13:12:44 +04:00
-@( if [ -x $( XSLTPROC) ] ; then \
$( XSLTPROC) -o $( WIN32_DIR) /libxml2.def.src \
2003-08-13 15:09:42 +04:00
--nonet $( WIN32_DIR) /defgen.xsl libxml2-api.xml ; fi )
2003-11-18 16:54:15 +03:00
libxml2-api.xml libxml2-refs.xml : apibuild .py ../include /libxml /*.h ../*.c
-( ./apibuild.py)
2005-01-26 02:45:06 +03:00
-@( cd .. ; $( MAKE) rebuild_testapi)
2003-11-18 16:54:15 +03:00
xmllint.1 : xmllint .xml
2004-09-07 13:12:44 +04:00
-@( $( XSLTPROC) --nonet xmllint.xml)
2003-11-18 16:54:15 +03:00
xmlcatalog.1 : xmlcatalog_man .xml
2004-09-07 13:12:44 +04:00
-@( $( XSLTPROC) --nonet xmlcatalog_man.xml)
2002-01-21 20:31:47 +03:00
1999-02-16 19:29:17 +03:00
clean-local :
rm -f *~ *.bak *.hierarchy *.signals *-unused.txt
2004-12-18 00:38:09 +03:00
maintainer-clean-local : clean -local
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
2003-11-21 03:28:39 +03:00
rebuild : api all
1999-02-22 13:33:01 +03:00
1999-02-25 14:01:29 +03:00
install-data-local :
2004-03-05 01:07:16 +03:00
$( mkinstalldirs) $( DESTDIR) $( HTML_DIR)
-@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)
$( mkinstalldirs) $( DESTDIR) $( HTML_DIR) /html
-@INSTALL@ -m 0644 $( srcdir) /html/*.html $( DESTDIR) $( HTML_DIR) /html
-@INSTALL@ -m 0644 $( srcdir) /html/*.png $( DESTDIR) $( HTML_DIR) /html
-@INSTALL@ -m 0644 $( srcdir) /html/index.sgml $( DESTDIR) $( HTML_DIR) /html
$( mkinstalldirs) $( DESTDIR) $( HTML_DIR) /tutorial
2003-10-19 15:22:27 +04:00
-@INSTALL@ -m 0644 $( srcdir) /tutorial/*.* \
2004-03-05 01:07:16 +03:00
$( DESTDIR) $( HTML_DIR) /tutorial
$( mkinstalldirs) $( DESTDIR) $( HTML_DIR) /tutorial/images
2003-10-19 15:22:27 +04:00
-@INSTALL@ -m 0644 $( srcdir) /tutorial/images/*.* \
2004-03-05 01:07:16 +03:00
$( DESTDIR) $( HTML_DIR) /tutorial/images
$( mkinstalldirs) $( DESTDIR) $( HTML_DIR) /tutorial/images/callouts
2003-10-19 15:22:27 +04:00
-@INSTALL@ -m 0644 $( srcdir) /tutorial/images/callouts/*.* \
2004-03-05 01:07:16 +03:00
$( DESTDIR) $( HTML_DIR) /tutorial/images/callouts
1999-02-25 14:01:29 +03:00
2003-04-30 00:25:40 +04:00
.PHONY : html xml templates scan