Makefile.am 1.61 KB
Newer Older
1
## Process this file with automake to produce Makefile.in
2

3
# The name of the module.
4
DOC_MODULE=libxml2-$(VERSION)
5 6 7 8 9 10 11

# 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=..

12
HTML_DIR=@HTML_DIR@
13

14
TARGET_DIR=$(HTML_DIR)/$(DOC_MODULE)/html
15

16 17 18
# htmldir = $(prefix)/html
# html_DATA = gnome-dev-info.html

19
scan:
20
	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"
21 22

templates: scan
23
	gtkdoc-mktmpl --module=libxml
24 25

sgml:
26
	gtkdoc-mkdb --module=libxml --source-dir=$(DOC_SOURCE_DIR)
27 28 29

html:
	if ! test -d html ; then mkdir html ; fi
30
	-cd html && gtkdoc-mkhtml libxml ../$(DOC_MAIN_SGML_FILE)
31 32 33 34 35

clean-local:
	rm -f *~ *.bak *.hierarchy *.signals *-unused.txt

maintainer-clean-local: clean
36
	rm -rf sgml html libxml-decl-list.txt libxml-decl.txt 
37

38
libxml-decl-list.txt : templates
39

40 41
libxml-sections.txt : scan
	cp libxml-decl-list.txt libxml-sections.txt
42

43
rebuild: libxml-sections.txt templates sgml html
44

45
install-data-local: 
46
	$(mkinstalldirs) $(DESTDIR)$(TARGET_DIR)
47
	-@INSTALL@ -m 0644 $(srcdir)/xml.html $(srcdir)/encoding.html $(srcdir)/FAQ.html $(srcdir)/structure.gif $(srcdir)/DOM.gif $(DESTDIR)$(TARGET_DIR)
48 49
	-@INSTALL@ -m 0644 $(srcdir)/html/*.html $(DESTDIR)$(TARGET_DIR)
	-@INSTALL@ -m 0644 $(srcdir)/html/index.sgml $(DESTDIR)$(TARGET_DIR)
50
	-(cd $(DESTDIR); gtkdoc-fixxref --module=libxml --html-dir=$(HTML_DIR))
51 52

dist-hook:
53
	(cd $(srcdir) ; tar cvf - *.html *.gif html/*.html html/*.sgml) | (cd $(distdir); tar xf -)
54 55

.PHONY : html sgml templates scan