blob: b995b0ee3045a42f44cc26910ff9abca991313a8 [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 Veillard98fed372001-09-13 11:34:58 +000016man_MANS = xmlcatalog.1
17
Daniel Veillard55a99271999-02-25 11:01:29 +000018# htmldir = $(prefix)/html
19# html_DATA = gnome-dev-info.html
20
Daniel Veillard1164e751999-02-16 16:29:17 +000021scan:
Daniel Veillard5e2dace2001-07-18 19:30:27 +000022 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 +000023
24templates: scan
Daniel Veillard5eb05942001-01-27 17:50:22 +000025 gtkdoc-mktmpl --module=libxml
Daniel Veillard1164e751999-02-16 16:29:17 +000026
27sgml:
Daniel Veillard5eb05942001-01-27 17:50:22 +000028 gtkdoc-mkdb --module=libxml --source-dir=$(DOC_SOURCE_DIR)
Daniel Veillard1164e751999-02-16 16:29:17 +000029
30html:
31 if ! test -d html ; then mkdir html ; fi
Daniel Veillard5eb05942001-01-27 17:50:22 +000032 -cd html && gtkdoc-mkhtml libxml ../$(DOC_MAIN_SGML_FILE)
Daniel Veillard1164e751999-02-16 16:29:17 +000033
34clean-local:
35 rm -f *~ *.bak *.hierarchy *.signals *-unused.txt
36
37maintainer-clean-local: clean
Daniel Veillard5eb05942001-01-27 17:50:22 +000038 rm -rf sgml html libxml-decl-list.txt libxml-decl.txt
Daniel Veillard1164e751999-02-16 16:29:17 +000039
Daniel Veillard5eb05942001-01-27 17:50:22 +000040libxml-decl-list.txt : templates
Daniel Veillard1e346af1999-02-22 10:33:01 +000041
Daniel Veillard5eb05942001-01-27 17:50:22 +000042libxml-sections.txt : scan
43 cp libxml-decl-list.txt libxml-sections.txt
Daniel Veillard1e346af1999-02-22 10:33:01 +000044
Daniel Veillard5eb05942001-01-27 17:50:22 +000045rebuild: libxml-sections.txt templates sgml html
Daniel Veillard1e346af1999-02-22 10:33:01 +000046
Daniel Veillard55a99271999-02-25 11:01:29 +000047install-data-local:
CEST 1999 Timur Bakeyev72bd1001999-09-04 20:50:25 +000048 $(mkinstalldirs) $(DESTDIR)$(TARGET_DIR)
Daniel Veillard979e55e2000-08-19 16:48:54 +000049 -@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 +000050 -@INSTALL@ -m 0644 $(srcdir)/html/*.html $(DESTDIR)$(TARGET_DIR)
51 -@INSTALL@ -m 0644 $(srcdir)/html/index.sgml $(DESTDIR)$(TARGET_DIR)
Daniel Veillard5eb05942001-01-27 17:50:22 +000052 -(cd $(DESTDIR); gtkdoc-fixxref --module=libxml --html-dir=$(HTML_DIR))
Daniel Veillard55a99271999-02-25 11:01:29 +000053
54dist-hook:
Daniel Veillard98fed372001-09-13 11:34:58 +000055 (cd $(srcdir) ; tar cvf - *.1 *.html *.gif html/*.html html/*.sgml) | (cd $(distdir); tar xf -)
Daniel Veillard1164e751999-02-16 16:29:17 +000056
57.PHONY : html sgml templates scan