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. |
| 4 | DOC_MODULE=gnome-xml |
| 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 | 55a9927 | 1999-02-25 11:01:29 +0000 | [diff] [blame^] | 12 | HTML_DIR=$(datadir)/gnome-xml/html |
Daniel Veillard | 1164e75 | 1999-02-16 16:29:17 +0000 | [diff] [blame] | 13 | |
| 14 | TARGET_DIR=$(HTML_DIR)/$(DOC_MODULE) |
| 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: |
| 20 | gtkdoc-scan --module=$(DOC_MODULE) --source-dir=$(DOC_SOURCE_DIR) --ignore-headers="acconfig.h config.h" |
| 21 | |
| 22 | templates: scan |
| 23 | gtkdoc-mktmpl --module=$(DOC_MODULE) |
| 24 | |
| 25 | sgml: |
| 26 | gtkdoc-mkdb --module=$(DOC_MODULE) --source-dir=$(DOC_SOURCE_DIR) |
| 27 | |
| 28 | html: |
| 29 | if ! test -d html ; then mkdir html ; fi |
| 30 | -cd html && gtkdoc-mkhtml $(DOC_MODULE) ../$(DOC_MAIN_SGML_FILE) |
| 31 | |
| 32 | clean-local: |
| 33 | rm -f *~ *.bak *.hierarchy *.signals *-unused.txt |
| 34 | |
| 35 | maintainer-clean-local: clean |
| 36 | rm -rf sgml html $(DOC_MODULE)-decl-list.txt $(DOC_MODULE)-decl.txt |
| 37 | |
Daniel Veillard | 55a9927 | 1999-02-25 11:01:29 +0000 | [diff] [blame^] | 38 | # docdatadir = $(datadir)/aclocal |
| 39 | # docdata_DATA = xml.html structure.gif DOM.gif |
Daniel Veillard | a4b4430 | 1999-02-16 18:53:00 +0000 | [diff] [blame] | 40 | |
Daniel Veillard | 1e346af | 1999-02-22 10:33:01 +0000 | [diff] [blame] | 41 | gnome-xml-decl-list.txt : templates |
| 42 | |
| 43 | gnome-xml-sections.txt : scan |
| 44 | cp gnome-xml-decl-list.txt gnome-xml-sections.txt |
| 45 | |
| 46 | rebuild: gnome-xml-sections.txt templates sgml html |
| 47 | |
Daniel Veillard | 55a9927 | 1999-02-25 11:01:29 +0000 | [diff] [blame^] | 48 | install-data-local: |
| 49 | install -d -m 0755 $(TARGET_DIR) |
| 50 | -install -m 0644 $(srcdir)/xml.html $(srcdir)/structure.gif $(srcdir)/DOM.gif $(TARGET_DIR) |
| 51 | -install -m 0644 $(srcdir)/html/*.html $(TARGET_DIR) |
| 52 | -install -m 0644 $(srcdir)/html/index.sgml $(TARGET_DIR) |
| 53 | -gtkdoc-fixxref --module=$(DOC_MODULE) --html-dir=$(HTML_DIR) |
| 54 | |
| 55 | dist-hook: |
| 56 | (cd $(srcdir) ; tar cvf - xml.html structure.gif DOM.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 |