blob: fb3809ebdcd9ec900956ee440a98023f0d4b63e1 [file] [log] [blame]
Daniel Veillard1164e751999-02-16 16:29:17 +00001## Process this file with automake to produce Makefile.in
Daniel Veillard19b858c1999-02-06 18:12:01 +00002
Daniel Veillard1164e751999-02-16 16:29:17 +00003# The name of the module.
Daniel Veillard8e199902001-01-25 18:54:39 +00004DOC_MODULE=libxml2-$(VERSION)
Daniel Veillard1164e751999-02-16 16:29:17 +00005
6# The top-level SGML file.
7DOC_MAIN_SGML_FILE=gnome-xml.sgml
8
9# The directory containing the source code (if it contains documentation).
10DOC_SOURCE_DIR=..
11
Daniel Veillard0a6c3582001-03-14 19:15:37 +000012HTML_DIR=@HTML_DIR@
Daniel Veillard1164e751999-02-16 16:29:17 +000013
Daniel Veillard8e199902001-01-25 18:54:39 +000014TARGET_DIR=$(HTML_DIR)/$(DOC_MODULE)/html
Daniel Veillardc9484202001-10-24 12:35:52 +000015PAGES= architecture.html bugs.html contribs.html docs.html DOM.html \
16 downloads.html entities.html example.html help.html index.html \
17 interface.html intro.html library.html namespaces.html news.html \
Daniel Veillardb8cfbd12001-10-25 10:53:28 +000018 tree.html xmldtd.html XML.html XSLT.html
Daniel Veillard1164e751999-02-16 16:29:17 +000019
Daniel Veillard52dcab32001-10-30 12:51:17 +000020man_MANS = xmllint.1 xmlcatalog.1
Daniel Veillard98fed372001-09-13 11:34:58 +000021
Daniel Veillardc9484202001-10-24 12:35:52 +000022all: $(PAGES)
23
24$(PAGES): xml.html site.xsl
25 @(if [ -x /usr/bin/xsltproc ] ; then \
26 /usr/bin/xsltproc --html site.xsl xml.html > index.html ; fi );
Daniel Veillard55a99271999-02-25 11:01:29 +000027
Daniel Veillard1164e751999-02-16 16:29:17 +000028scan:
Daniel Veillard5e2dace2001-07-18 19:30:27 +000029 gtkdoc-scan --module=libxml --source-dir=$(DOC_SOURCE_DIR) --ignore-headers="acconfig.h config.h xmlwin32version.h win32config.h trio.h strio.h triop.h"
Daniel Veillard1164e751999-02-16 16:29:17 +000030
31templates: scan
Daniel Veillard5eb05942001-01-27 17:50:22 +000032 gtkdoc-mktmpl --module=libxml
Daniel Veillard1164e751999-02-16 16:29:17 +000033
34sgml:
Daniel Veillard5eb05942001-01-27 17:50:22 +000035 gtkdoc-mkdb --module=libxml --source-dir=$(DOC_SOURCE_DIR)
Daniel Veillard1164e751999-02-16 16:29:17 +000036
37html:
38 if ! test -d html ; then mkdir html ; fi
Daniel Veillard5eb05942001-01-27 17:50:22 +000039 -cd html && gtkdoc-mkhtml libxml ../$(DOC_MAIN_SGML_FILE)
Daniel Veillard1164e751999-02-16 16:29:17 +000040
41clean-local:
42 rm -f *~ *.bak *.hierarchy *.signals *-unused.txt
43
44maintainer-clean-local: clean
Daniel Veillard5eb05942001-01-27 17:50:22 +000045 rm -rf sgml html libxml-decl-list.txt libxml-decl.txt
Daniel Veillard1164e751999-02-16 16:29:17 +000046
Daniel Veillard5eb05942001-01-27 17:50:22 +000047libxml-decl-list.txt : templates
Daniel Veillard1e346af1999-02-22 10:33:01 +000048
Daniel Veillard5eb05942001-01-27 17:50:22 +000049libxml-sections.txt : scan
50 cp libxml-decl-list.txt libxml-sections.txt
Daniel Veillard1e346af1999-02-22 10:33:01 +000051
Daniel Veillard5eb05942001-01-27 17:50:22 +000052rebuild: libxml-sections.txt templates sgml html
Daniel Veillard1e346af1999-02-22 10:33:01 +000053
Daniel Veillard55a99271999-02-25 11:01:29 +000054install-data-local:
CEST 1999 Timur Bakeyev72bd1001999-09-04 20:50:25 +000055 $(mkinstalldirs) $(DESTDIR)$(TARGET_DIR)
Daniel Veillard979e55e2000-08-19 16:48:54 +000056 -@INSTALL@ -m 0644 $(srcdir)/xml.html $(srcdir)/encoding.html $(srcdir)/FAQ.html $(srcdir)/structure.gif $(srcdir)/DOM.gif $(DESTDIR)$(TARGET_DIR)
Tomasz Kłoczko15012ae1999-07-10 12:18:15 +000057 -@INSTALL@ -m 0644 $(srcdir)/html/*.html $(DESTDIR)$(TARGET_DIR)
58 -@INSTALL@ -m 0644 $(srcdir)/html/index.sgml $(DESTDIR)$(TARGET_DIR)
Daniel Veillard5eb05942001-01-27 17:50:22 +000059 -(cd $(DESTDIR); gtkdoc-fixxref --module=libxml --html-dir=$(HTML_DIR))
Daniel Veillard55a99271999-02-25 11:01:29 +000060
61dist-hook:
Daniel Veillardc9484202001-10-24 12:35:52 +000062 (cd $(srcdir) ; tar cvf - *.1 site.xsl *.html *.gif html/*.html html/*.sgml) | (cd $(distdir); tar xf -)
Daniel Veillard1164e751999-02-16 16:29:17 +000063
64.PHONY : html sgml templates scan