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.
DOC_MAIN_SGML_FILE = gnome-xml.sgml
# The directory containing the source code (if it contains documentation).
DOC_SOURCE_DIR = ..
2001-01-25 21:54:39 +03:00
HTML_DIR = $( prefix) /doc
1999-02-16 19:29:17 +03:00
2001-01-25 21:54:39 +03:00
TARGET_DIR = $( HTML_DIR) /$( DOC_MODULE) /html
1999-02-16 19:29:17 +03:00
1999-02-25 14:01:29 +03:00
# htmldir = $(prefix)/html
# html_DATA = gnome-dev-info.html
1999-02-16 19:29:17 +03:00
scan :
2000-04-07 21:00:24 +04:00
@( if [ -L $( DOC_SOURCE_DIR) /libxml ] ; then rm -f $( DOC_SOURCE_DIR) /libxml ; fi )
2000-10-15 15:27:01 +04:00
@( if [ -L $( DOC_SOURCE_DIR) /include ] ; then rm -f $( DOC_SOURCE_DIR) /include ; fi )
@( if [ -L $( DOC_SOURCE_DIR) /include/libxml ] ; then rm -f $( DOC_SOURCE_DIR) /include/libxml ; fi )
2001-01-27 20:50:22 +03:00
gtkdoc-scan --module= libxml --source-dir= $( DOC_SOURCE_DIR) --ignore-headers= "acconfig.h config.h"
1999-02-16 19:29:17 +03:00
templates : scan
2001-01-27 20:50:22 +03:00
gtkdoc-mktmpl --module= libxml
1999-02-16 19:29:17 +03:00
sgml :
2001-01-27 20:50:22 +03:00
gtkdoc-mkdb --module= libxml --source-dir= $( DOC_SOURCE_DIR)
1999-02-16 19:29:17 +03:00
html :
if ! test -d html ; then mkdir html ; fi
2001-01-27 20:50:22 +03:00
-cd html && gtkdoc-mkhtml libxml ../$( DOC_MAIN_SGML_FILE)
1999-02-16 19:29:17 +03:00
clean-local :
rm -f *~ *.bak *.hierarchy *.signals *-unused.txt
maintainer-clean-local : clean
2001-01-27 20:50:22 +03:00
rm -rf sgml html libxml-decl-list.txt libxml-decl.txt
1999-02-16 19:29:17 +03:00
2001-01-27 20:50:22 +03:00
libxml-decl-list.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
2001-01-27 20:50:22 +03:00
rebuild : libxml -sections .txt templates sgml html
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)
2000-08-19 20:48:54 +04:00
-@INSTALL@ -m 0644 $( srcdir) /xml.html $( srcdir) /encoding.html $( srcdir) /FAQ.html $( srcdir) /structure.gif $( srcdir) /DOM.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)
2001-01-27 20:50:22 +03:00
-( cd $( DESTDIR) ; gtkdoc-fixxref --module= libxml --html-dir= $( HTML_DIR) )
1999-02-25 14:01:29 +03:00
dist-hook :
2000-09-17 20:00:22 +04:00
( cd $( srcdir) ; tar cvf - *.html *.gif html/*.html html/*.sgml) | ( cd $( distdir) ; tar xf -)
1999-02-16 19:29:17 +03:00
.PHONY : html sgml templates scan