## Process this file with automake to produce Makefile.in
-EXTRA_DIST = Makefile.am atk-api.sgml atk-docs.sgml atk-sections.txt
+AUTOMAKE_OPTIONS = 1.6
# The name of the module.
DOC_MODULE=atk
# The top-level SGML file.
DOC_MAIN_SGML_FILE=atk-docs.sgml
-# The directory containing the source code (if it contains documentation).
-DOC_SOURCE_DIR=../atk
-
-
-TARGET_DIR=$(HTML_DIR)/$(DOC_MODULE)
-
-scan:
- 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"
+# Extra options to supply to gtkdoc-scan
+SCAN_OPTIONS=--deprecated-guards=G_DISABLE_DEPRECATED
-templates: scan
- gtkdoc-mktmpl --module=$(DOC_MODULE)
-
-sgml:
- gtkdoc-mkdb --module=$(DOC_MODULE) --source-dir=$(DOC_SOURCE_DIR)
-
-html:
- if test ! -d html ; then mkdir html ; fi
- -cd html && gtkdoc-mkhtml $(DOC_MODULE) ../$(DOC_MAIN_SGML_FILE)
+# The directory containing the source code (if it contains documentation).
+DOC_SOURCE_DIR=$(top_srcdir)/atk $(top_builddir)/atk
-clean-local:
- rm -f *~ *.bak *.hierarchy *.signals *.args *-unused.txt
+# Used for dependencies
+HFILE_GLOB = $(top_srcdir)/atk/*.h
+CFILE_GLOB = $(top_srcdir)/atk/*.c
-maintainer-clean-local: clean-local
- rm -rf sgml html $(DOC_MODULE)-decl-list.txt $(DOC_MODULE)-decl.txt
+# Header files to ignore when scanning
+IGNORE_HFILES = \
+ atkmarshal.h \
+ atkintl.h
-install-data-local:
- install -d -m 0755 $(TARGET_DIR)
- install -m 0644 html/*.html $(TARGET_DIR)
- install -m 0644 html/index.sgml $(TARGET_DIR)
- gtkdoc-fixxref --module=$(DOC_MODULE) --html-dir=$(HTML_DIR)
+# CFLAGS and LDFLAGS for compiling scan program. Only needed
+# if $(DOC_MODULE).types is non-empty.
+AM_CPPFLAGS = \
+ -I$(top_srcdir) \
+ -I$(top_builddir) \
+ $(DEP_CFLAGS)
-#
-# Require gtk-doc when making dist
-#
-if ENABLE_GTK_DOC
-dist-check-gtkdoc:
-else
-dist-check-gtkdoc:
- @echo "*** gtk-doc must be installed and enabled in order to make dist"
- @false
-endif
+GTKDOC_LIBS = $(top_builddir)/atk/libatk-$(ATK_API_VERSION).la \
+ $(DEP_LIBS)
-dist-hook: dist-check-gtkdoc dist-hook-local
- mkdir $(distdir)/tmpl
- mkdir $(distdir)/sgml
- mkdir $(distdir)/html
- -cp $(srcdir)/tmpl/*.sgml $(distdir)/tmpl
- -cp $(srcdir)/sgml/*.sgml $(distdir)/sgml
- -cp $(srcdir)/html/index.sgml $(distdir)/html
- -cp $(srcdir)/html/*.html $(srcdir)/html/*.css $(distdir)/html
+# gtkdoc-mkdb related varaibles
+MKDB_OPTIONS =--sgml-mode
+content_files = \
+ version.xml
+HTML_IMAGES =
- images=$(HTML_IMAGES) ; \
- for i in $$images ; do \
- cp $(srcdir)/$$i $(distdir)/html ; \
- done
+include $(top_srcdir)/gtk-doc.make
-.PHONY : html sgml templates scan dist-hook-local
+# Other files to distribute
+EXTRA_DIST += version.xml.in