Daniel Veillard | 1164e75 | 1999-02-16 16:29:17 +0000 | [diff] [blame] | 1 | ## Process this file with automake to produce Makefile.in |
Daniel Veillard | 19b858c | 1999-02-06 18:12:01 +0000 | [diff] [blame] | 2 | |
Daniel Veillard | 1164e75 | 1999-02-16 16:29:17 +0000 | [diff] [blame] | 3 | # The name of the module. |
Daniel Veillard | 8e19990 | 2001-01-25 18:54:39 +0000 | [diff] [blame] | 4 | DOC_MODULE=libxml2-$(VERSION) |
Daniel Veillard | 1164e75 | 1999-02-16 16:29:17 +0000 | [diff] [blame] | 5 | |
| 6 | # The top-level SGML file. |
| 7 | DOC_MAIN_SGML_FILE=gnome-xml.sgml |
| 8 | |
| 9 | # The directory containing the source code (if it contains documentation). |
| 10 | DOC_SOURCE_DIR=.. |
| 11 | |
Daniel Veillard | 0a6c358 | 2001-03-14 19:15:37 +0000 | [diff] [blame] | 12 | HTML_DIR=@HTML_DIR@ |
Daniel Veillard | 1164e75 | 1999-02-16 16:29:17 +0000 | [diff] [blame] | 13 | |
Daniel Veillard | 8e19990 | 2001-01-25 18:54:39 +0000 | [diff] [blame] | 14 | TARGET_DIR=$(HTML_DIR)/$(DOC_MODULE)/html |
Daniel Veillard | 1164e75 | 1999-02-16 16:29:17 +0000 | [diff] [blame] | 15 | |
Daniel Veillard | 55a9927 | 1999-02-25 11:01:29 +0000 | [diff] [blame] | 16 | # htmldir = $(prefix)/html |
| 17 | # html_DATA = gnome-dev-info.html |
| 18 | |
Daniel Veillard | 1164e75 | 1999-02-16 16:29:17 +0000 | [diff] [blame] | 19 | scan: |
Daniel Veillard | 5d211f4 | 2000-04-07 17:00:24 +0000 | [diff] [blame] | 20 | @(if [ -L $(DOC_SOURCE_DIR)/libxml ] ; then rm -f $(DOC_SOURCE_DIR)/libxml ; fi) |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 21 | @(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 Veillard | 5eb0594 | 2001-01-27 17:50:22 +0000 | [diff] [blame] | 23 | gtkdoc-scan --module=libxml --source-dir=$(DOC_SOURCE_DIR) --ignore-headers="acconfig.h config.h" |
Daniel Veillard | 1164e75 | 1999-02-16 16:29:17 +0000 | [diff] [blame] | 24 | |
| 25 | templates: scan |
Daniel Veillard | 5eb0594 | 2001-01-27 17:50:22 +0000 | [diff] [blame] | 26 | gtkdoc-mktmpl --module=libxml |
Daniel Veillard | 1164e75 | 1999-02-16 16:29:17 +0000 | [diff] [blame] | 27 | |
| 28 | sgml: |
Daniel Veillard | 5eb0594 | 2001-01-27 17:50:22 +0000 | [diff] [blame] | 29 | gtkdoc-mkdb --module=libxml --source-dir=$(DOC_SOURCE_DIR) |
Daniel Veillard | 1164e75 | 1999-02-16 16:29:17 +0000 | [diff] [blame] | 30 | |
| 31 | html: |
| 32 | if ! test -d html ; then mkdir html ; fi |
Daniel Veillard | 5eb0594 | 2001-01-27 17:50:22 +0000 | [diff] [blame] | 33 | -cd html && gtkdoc-mkhtml libxml ../$(DOC_MAIN_SGML_FILE) |
Daniel Veillard | 1164e75 | 1999-02-16 16:29:17 +0000 | [diff] [blame] | 34 | |
| 35 | clean-local: |
| 36 | rm -f *~ *.bak *.hierarchy *.signals *-unused.txt |
| 37 | |
| 38 | maintainer-clean-local: clean |
Daniel Veillard | 5eb0594 | 2001-01-27 17:50:22 +0000 | [diff] [blame] | 39 | rm -rf sgml html libxml-decl-list.txt libxml-decl.txt |
Daniel Veillard | 1164e75 | 1999-02-16 16:29:17 +0000 | [diff] [blame] | 40 | |
Daniel Veillard | 5eb0594 | 2001-01-27 17:50:22 +0000 | [diff] [blame] | 41 | libxml-decl-list.txt : templates |
Daniel Veillard | 1e346af | 1999-02-22 10:33:01 +0000 | [diff] [blame] | 42 | |
Daniel Veillard | 5eb0594 | 2001-01-27 17:50:22 +0000 | [diff] [blame] | 43 | libxml-sections.txt : scan |
| 44 | cp libxml-decl-list.txt libxml-sections.txt |
Daniel Veillard | 1e346af | 1999-02-22 10:33:01 +0000 | [diff] [blame] | 45 | |
Daniel Veillard | 5eb0594 | 2001-01-27 17:50:22 +0000 | [diff] [blame] | 46 | rebuild: libxml-sections.txt templates sgml html |
Daniel Veillard | 1e346af | 1999-02-22 10:33:01 +0000 | [diff] [blame] | 47 | |
Daniel Veillard | 55a9927 | 1999-02-25 11:01:29 +0000 | [diff] [blame] | 48 | install-data-local: |
CEST 1999 Timur Bakeyev | 72bd100 | 1999-09-04 20:50:25 +0000 | [diff] [blame] | 49 | $(mkinstalldirs) $(DESTDIR)$(TARGET_DIR) |
Daniel Veillard | 979e55e | 2000-08-19 16:48:54 +0000 | [diff] [blame] | 50 | -@INSTALL@ -m 0644 $(srcdir)/xml.html $(srcdir)/encoding.html $(srcdir)/FAQ.html $(srcdir)/structure.gif $(srcdir)/DOM.gif $(DESTDIR)$(TARGET_DIR) |
Tomasz Kłoczko | 15012ae | 1999-07-10 12:18:15 +0000 | [diff] [blame] | 51 | -@INSTALL@ -m 0644 $(srcdir)/html/*.html $(DESTDIR)$(TARGET_DIR) |
| 52 | -@INSTALL@ -m 0644 $(srcdir)/html/index.sgml $(DESTDIR)$(TARGET_DIR) |
Daniel Veillard | 5eb0594 | 2001-01-27 17:50:22 +0000 | [diff] [blame] | 53 | -(cd $(DESTDIR); gtkdoc-fixxref --module=libxml --html-dir=$(HTML_DIR)) |
Daniel Veillard | 55a9927 | 1999-02-25 11:01:29 +0000 | [diff] [blame] | 54 | |
| 55 | dist-hook: |
Daniel Veillard | 04698d9 | 2000-09-17 16:00:22 +0000 | [diff] [blame] | 56 | (cd $(srcdir) ; tar cvf - *.html *.gif html/*.html html/*.sgml) | (cd $(distdir); tar xf -) |
Daniel Veillard | 1164e75 | 1999-02-16 16:29:17 +0000 | [diff] [blame] | 57 | |
| 58 | .PHONY : html sgml templates scan |