1 ## Process this file with automake to produce Makefile.in
3 EXTRA_DIST = Makefile.am atk-api.sgml atk-docs.sgml atk-sections.txt
5 # The name of the module.
8 # The top-level SGML file.
9 DOC_MAIN_SGML_FILE=atk-docs.sgml
11 # The directory containing the source code (if it contains documentation).
15 TARGET_DIR=$(HTML_DIR)/$(DOC_MODULE)
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"
21 gtkdoc-mktmpl --module=$(DOC_MODULE)
24 gtkdoc-mkdb --module=$(DOC_MODULE) --source-dir=$(DOC_SOURCE_DIR)
27 if test ! -d html ; then mkdir html ; fi
28 -cd html && gtkdoc-mkhtml $(DOC_MODULE) ../$(DOC_MAIN_SGML_FILE)
31 rm -f *~ *.bak *.hierarchy *.signals *.args *-unused.txt
33 maintainer-clean-local: clean-local
34 rm -rf sgml html $(DOC_MODULE)-decl-list.txt $(DOC_MODULE)-decl.txt
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)
43 # Require gtk-doc when making dist
49 @echo "*** gtk-doc must be installed and enabled in order to make dist"
53 dist-hook: dist-check-gtkdoc dist-hook-local
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
62 images=$(HTML_IMAGES) ; \
63 for i in $$images ; do \
64 cp $(srcdir)/$$i $(distdir)/html ; \
67 .PHONY : html sgml templates scan dist-hook-local