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 | c948420 | 2001-10-24 12:35:52 +0000 | [diff] [blame] | 15 | PAGES= 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 Veillard | b8cfbd1 | 2001-10-25 10:53:28 +0000 | [diff] [blame] | 18 | tree.html xmldtd.html XML.html XSLT.html |
Daniel Veillard | 1164e75 | 1999-02-16 16:29:17 +0000 | [diff] [blame] | 19 | |
Daniel Veillard | 52dcab3 | 2001-10-30 12:51:17 +0000 | [diff] [blame^] | 20 | man_MANS = xmllint.1 xmlcatalog.1 |
Daniel Veillard | 98fed37 | 2001-09-13 11:34:58 +0000 | [diff] [blame] | 21 | |
Daniel Veillard | c948420 | 2001-10-24 12:35:52 +0000 | [diff] [blame] | 22 | all: $(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 Veillard | 55a9927 | 1999-02-25 11:01:29 +0000 | [diff] [blame] | 27 | |
Daniel Veillard | 1164e75 | 1999-02-16 16:29:17 +0000 | [diff] [blame] | 28 | scan: |
Daniel Veillard | 5e2dace | 2001-07-18 19:30:27 +0000 | [diff] [blame] | 29 | 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 Veillard | 1164e75 | 1999-02-16 16:29:17 +0000 | [diff] [blame] | 30 | |
| 31 | templates: scan |
Daniel Veillard | 5eb0594 | 2001-01-27 17:50:22 +0000 | [diff] [blame] | 32 | gtkdoc-mktmpl --module=libxml |
Daniel Veillard | 1164e75 | 1999-02-16 16:29:17 +0000 | [diff] [blame] | 33 | |
| 34 | sgml: |
Daniel Veillard | 5eb0594 | 2001-01-27 17:50:22 +0000 | [diff] [blame] | 35 | gtkdoc-mkdb --module=libxml --source-dir=$(DOC_SOURCE_DIR) |
Daniel Veillard | 1164e75 | 1999-02-16 16:29:17 +0000 | [diff] [blame] | 36 | |
| 37 | html: |
| 38 | if ! test -d html ; then mkdir html ; fi |
Daniel Veillard | 5eb0594 | 2001-01-27 17:50:22 +0000 | [diff] [blame] | 39 | -cd html && gtkdoc-mkhtml libxml ../$(DOC_MAIN_SGML_FILE) |
Daniel Veillard | 1164e75 | 1999-02-16 16:29:17 +0000 | [diff] [blame] | 40 | |
| 41 | clean-local: |
| 42 | rm -f *~ *.bak *.hierarchy *.signals *-unused.txt |
| 43 | |
| 44 | maintainer-clean-local: clean |
Daniel Veillard | 5eb0594 | 2001-01-27 17:50:22 +0000 | [diff] [blame] | 45 | rm -rf sgml html libxml-decl-list.txt libxml-decl.txt |
Daniel Veillard | 1164e75 | 1999-02-16 16:29:17 +0000 | [diff] [blame] | 46 | |
Daniel Veillard | 5eb0594 | 2001-01-27 17:50:22 +0000 | [diff] [blame] | 47 | libxml-decl-list.txt : templates |
Daniel Veillard | 1e346af | 1999-02-22 10:33:01 +0000 | [diff] [blame] | 48 | |
Daniel Veillard | 5eb0594 | 2001-01-27 17:50:22 +0000 | [diff] [blame] | 49 | libxml-sections.txt : scan |
| 50 | cp libxml-decl-list.txt libxml-sections.txt |
Daniel Veillard | 1e346af | 1999-02-22 10:33:01 +0000 | [diff] [blame] | 51 | |
Daniel Veillard | 5eb0594 | 2001-01-27 17:50:22 +0000 | [diff] [blame] | 52 | rebuild: libxml-sections.txt templates sgml html |
Daniel Veillard | 1e346af | 1999-02-22 10:33:01 +0000 | [diff] [blame] | 53 | |
Daniel Veillard | 55a9927 | 1999-02-25 11:01:29 +0000 | [diff] [blame] | 54 | install-data-local: |
CEST 1999 Timur Bakeyev | 72bd100 | 1999-09-04 20:50:25 +0000 | [diff] [blame] | 55 | $(mkinstalldirs) $(DESTDIR)$(TARGET_DIR) |
Daniel Veillard | 979e55e | 2000-08-19 16:48:54 +0000 | [diff] [blame] | 56 | -@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] | 57 | -@INSTALL@ -m 0644 $(srcdir)/html/*.html $(DESTDIR)$(TARGET_DIR) |
| 58 | -@INSTALL@ -m 0644 $(srcdir)/html/index.sgml $(DESTDIR)$(TARGET_DIR) |
Daniel Veillard | 5eb0594 | 2001-01-27 17:50:22 +0000 | [diff] [blame] | 59 | -(cd $(DESTDIR); gtkdoc-fixxref --module=libxml --html-dir=$(HTML_DIR)) |
Daniel Veillard | 55a9927 | 1999-02-25 11:01:29 +0000 | [diff] [blame] | 60 | |
| 61 | dist-hook: |
Daniel Veillard | c948420 | 2001-10-24 12:35:52 +0000 | [diff] [blame] | 62 | (cd $(srcdir) ; tar cvf - *.1 site.xsl *.html *.gif html/*.html html/*.sgml) | (cd $(distdir); tar xf -) |
Daniel Veillard | 1164e75 | 1999-02-16 16:29:17 +0000 | [diff] [blame] | 63 | |
| 64 | .PHONY : html sgml templates scan |