Update Catalan translation
[platform/upstream/atk.git] / docs / Makefile.am
index 7a728a8..5fd3fc1 100644 (file)
@@ -1,40 +1,42 @@
 ## Process this file with automake to produce Makefile.in
 
+AUTOMAKE_OPTIONS = 1.6
+
 # The name of the module.
 DOC_MODULE=atk
 
 # The top-level SGML file.
 DOC_MAIN_SGML_FILE=atk-docs.sgml
 
+# Extra options to supply to gtkdoc-scan
+SCAN_OPTIONS=--deprecated-guards=G_DISABLE_DEPRECATED
 # The directory containing the source code (if it contains documentation).
 DOC_SOURCE_DIR=../atk
 
+# Used for dependencies
+HFILE_GLOB = $(top_srcdir)/atk/*.h
+CFILE_GLOB = $(top_srcdir)/atk/*.c
 
-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"
-
-templates: scan
-       gtkdoc-mktmpl --module=$(DOC_MODULE)
-
-sgml:
-       gtkdoc-mkdb --module=$(DOC_MODULE) --source-dir=$(DOC_SOURCE_DIR)
+# Header files to ignore when scanning
+IGNORE_HFILES =        atkmarshal.h atkintl.h
 
-html:
-       if test ! -d html ; then mkdir html ; fi
-       -cd html && gtkdoc-mkhtml $(DOC_MODULE) ../$(DOC_MAIN_SGML_FILE)
+# 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)
 
-clean-local:
-       rm -f *~ *.bak *.hierarchy *.signals *.args *-unused.txt
+GTKDOC_LIBS = $(top_builddir)/atk/libatk-$(ATK_API_VERSION).la \
+              $(DEP_LIBS)
 
-maintainer-clean-local: clean-local
-       rm -rf sgml html $(DOC_MODULE)-decl-list.txt $(DOC_MODULE)-decl.txt 
+# gtkdoc-mkdb related varaibles
+MKDB_OPTIONS =--sgml-mode
+content_files =                \
+       version.xml
+HTML_IMAGES =
 
-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)
+include $(top_srcdir)/gtk-doc.make
 
-.PHONY : html sgml templates scan
+# Other files to distribute
+EXTRA_DIST += version.xml.in