blob: 7feec359f683d26e73fc8ec6ba62f10bac54e9bd [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 Veillard1164e751999-02-16 16:29:17 +000015
Daniel Veillard55a99271999-02-25 11:01:29 +000016# htmldir = $(prefix)/html
17# html_DATA = gnome-dev-info.html
18
Daniel Veillard1164e751999-02-16 16:29:17 +000019scan:
Daniel Veillard5d211f42000-04-07 17:00:24 +000020 @(if [ -L $(DOC_SOURCE_DIR)/libxml ] ; then rm -f $(DOC_SOURCE_DIR)/libxml ; fi)
Daniel Veillardb732a0e2000-10-15 11:27:01 +000021 @(if [ -L $(DOC_SOURCE_DIR)/include ] ; then rm -f $(DOC_SOURCE_DIR)/include ; fi)
22 @(if [ -L $(DOC_SOURCE_DIR)/include/libxml ] ; then rm -f $(DOC_SOURCE_DIR)/include/libxml ; fi)
Daniel Veillard5eb05942001-01-27 17:50:22 +000023 gtkdoc-scan --module=libxml --source-dir=$(DOC_SOURCE_DIR) --ignore-headers="acconfig.h config.h"
Daniel Veillard1164e751999-02-16 16:29:17 +000024
25templates: scan
Daniel Veillard5eb05942001-01-27 17:50:22 +000026 gtkdoc-mktmpl --module=libxml
Daniel Veillard1164e751999-02-16 16:29:17 +000027
28sgml:
Daniel Veillard5eb05942001-01-27 17:50:22 +000029 gtkdoc-mkdb --module=libxml --source-dir=$(DOC_SOURCE_DIR)
Daniel Veillard1164e751999-02-16 16:29:17 +000030
31html:
32 if ! test -d html ; then mkdir html ; fi
Daniel Veillard5eb05942001-01-27 17:50:22 +000033 -cd html && gtkdoc-mkhtml libxml ../$(DOC_MAIN_SGML_FILE)
Daniel Veillard1164e751999-02-16 16:29:17 +000034
35clean-local:
36 rm -f *~ *.bak *.hierarchy *.signals *-unused.txt
37
38maintainer-clean-local: clean
Daniel Veillard5eb05942001-01-27 17:50:22 +000039 rm -rf sgml html libxml-decl-list.txt libxml-decl.txt
Daniel Veillard1164e751999-02-16 16:29:17 +000040
Daniel Veillard5eb05942001-01-27 17:50:22 +000041libxml-decl-list.txt : templates
Daniel Veillard1e346af1999-02-22 10:33:01 +000042
Daniel Veillard5eb05942001-01-27 17:50:22 +000043libxml-sections.txt : scan
44 cp libxml-decl-list.txt libxml-sections.txt
Daniel Veillard1e346af1999-02-22 10:33:01 +000045
Daniel Veillard5eb05942001-01-27 17:50:22 +000046rebuild: libxml-sections.txt templates sgml html
Daniel Veillard1e346af1999-02-22 10:33:01 +000047
Daniel Veillard55a99271999-02-25 11:01:29 +000048install-data-local:
CEST 1999 Timur Bakeyev72bd1001999-09-04 20:50:25 +000049 $(mkinstalldirs) $(DESTDIR)$(TARGET_DIR)
Daniel Veillard979e55e2000-08-19 16:48:54 +000050 -@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 +000051 -@INSTALL@ -m 0644 $(srcdir)/html/*.html $(DESTDIR)$(TARGET_DIR)
52 -@INSTALL@ -m 0644 $(srcdir)/html/index.sgml $(DESTDIR)$(TARGET_DIR)
Daniel Veillard5eb05942001-01-27 17:50:22 +000053 -(cd $(DESTDIR); gtkdoc-fixxref --module=libxml --html-dir=$(HTML_DIR))
Daniel Veillard55a99271999-02-25 11:01:29 +000054
55dist-hook:
Daniel Veillard04698d92000-09-17 16:00:22 +000056 (cd $(srcdir) ; tar cvf - *.html *.gif html/*.html html/*.sgml) | (cd $(distdir); tar xf -)
Daniel Veillard1164e751999-02-16 16:29:17 +000057
58.PHONY : html sgml templates scan