Added atk_marshal_VOID__INT_INT marshaller. Updated the Makefiles so the
[platform/upstream/atk.git] / docs / Makefile.am
1 ## Process this file with automake to produce Makefile.in
2
3 EXTRA_DIST = Makefile.am atk-api.sgml atk-docs.sgml atk-sections.txt
4
5 # The name of the module.
6 DOC_MODULE=atk
7
8 # The top-level SGML file.
9 DOC_MAIN_SGML_FILE=atk-docs.sgml
10
11 # The directory containing the source code (if it contains documentation).
12 DOC_SOURCE_DIR=../atk
13
14
15 TARGET_DIR=$(HTML_DIR)/$(DOC_MODULE)
16
17 scan:
18         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"
19
20 templates: scan
21         gtkdoc-mktmpl --module=$(DOC_MODULE)
22
23 sgml:
24         gtkdoc-mkdb --module=$(DOC_MODULE) --source-dir=$(DOC_SOURCE_DIR)
25
26 html:
27         if test ! -d html ; then mkdir html ; fi
28         -cd html && gtkdoc-mkhtml $(DOC_MODULE) ../$(DOC_MAIN_SGML_FILE)
29
30 clean-local:
31         rm -f *~ *.bak *.hierarchy *.signals *.args *-unused.txt
32
33 maintainer-clean-local: clean-local
34         rm -rf sgml html $(DOC_MODULE)-decl-list.txt $(DOC_MODULE)-decl.txt 
35
36 install-data-local:
37         install -d -m 0755 $(TARGET_DIR)
38         install -m 0644 html/*.html $(TARGET_DIR)
39         install -m 0644 html/index.sgml $(TARGET_DIR)
40         gtkdoc-fixxref --module=$(DOC_MODULE) --html-dir=$(HTML_DIR)
41
42 #
43 # Require gtk-doc when making dist
44 #
45 if ENABLE_GTK_DOC
46 dist-check-gtkdoc:
47 else
48 dist-check-gtkdoc:
49         @echo "*** gtk-doc must be installed and enabled in order to make dist"
50         @false
51 endif
52
53 dist-hook: dist-check-gtkdoc dist-hook-local
54         mkdir $(distdir)/tmpl
55         mkdir $(distdir)/sgml
56         mkdir $(distdir)/html
57         -cp $(srcdir)/tmpl/*.sgml $(distdir)/tmpl
58         -cp $(srcdir)/sgml/*.sgml $(distdir)/sgml
59         -cp $(srcdir)/html/index.sgml $(distdir)/html
60         -cp $(srcdir)/html/*.html $(srcdir)/html/*.css $(distdir)/html
61
62         images=$(HTML_IMAGES) ;                 \
63         for i in $$images ; do                  \
64           cp $(srcdir)/$$i $(distdir)/html ;  \
65         done
66
67 .PHONY : html sgml templates scan dist-hook-local