Added gtk-doc directory and Makefile.am
[platform/upstream/atk.git] / docs / Makefile.am
1 ## Process this file with automake to produce Makefile.in
2
3 # The name of the module.
4 DOC_MODULE=atk
5
6 # The top-level SGML file.
7 DOC_MAIN_SGML_FILE=atk-docs.sgml
8
9 # The directory containing the source code (if it contains documentation).
10 DOC_SOURCE_DIR=../atk
11
12
13 TARGET_DIR=$(HTML_DIR)/$(DOC_MODULE)
14
15 scan:
16         gtkdoc-scan --module=$(DOC_MODULE) --source-dir=$(DOC_SOURCE_DIR) --ignore-headers="libgnomeP.h gnome-i18nP.h gnome-triggersP.h gnome-magic.h vroot.h"
17
18 templates: scan
19         gtkdoc-mktmpl --module=$(DOC_MODULE)
20
21 sgml:
22         gtkdoc-mkdb --module=$(DOC_MODULE) --source-dir=$(DOC_SOURCE_DIR)
23
24 html:
25         if test ! -d html ; then mkdir html ; fi
26         -cd html && gtkdoc-mkhtml $(DOC_MODULE) ../$(DOC_MAIN_SGML_FILE)
27
28 clean-local:
29         rm -f *~ *.bak *.hierarchy *.signals *.args *-unused.txt
30
31 maintainer-clean-local: clean-local
32         rm -rf sgml html $(DOC_MODULE)-decl-list.txt $(DOC_MODULE)-decl.txt 
33
34 install-data-local:
35         install -d -m 0755 $(TARGET_DIR)
36         install -m 0644 html/*.html $(TARGET_DIR)
37         install -m 0644 html/index.sgml $(TARGET_DIR)
38         gtkdoc-fixxref --module=$(DOC_MODULE) --html-dir=$(HTML_DIR)
39
40 .PHONY : html sgml templates scan