## Process this file with automake to produce Makefile.in
+AUTOMAKE_OPTIONS = 1.6
# The name of the module.
DOC_MODULE=glib
# The top-level SGML file.
DOC_MAIN_SGML_FILE=glib-docs.sgml
+# Extra options to supply to gtkdoc-scan
+SCAN_OPTIONS=--deprecated-guards="G_DISABLE_DEPRECATED"
-TARGET_DIR=$(HTML_DIR)/$(DOC_MODULE)
+# The directory containing the source code. Relative to $(srcdir)
+DOC_SOURCE_DIR=../../..
-scan:
- gtkdoc-scan --module=$(DOC_MODULE) `glib-config --prefix`/include/glib.h `glib-config --prefix`/include/gmodule.h `glib-config --prefix`/lib/glib/include/glibconfig.h
+# Used for dependencies
+HFILE_GLOB=$(top_srcdir)/glib/*.h $(top_srcdir)/gmodule/*.h
+CFILE_GLOB=$(top_srcdir)/glib/*.c $(top_srcdir)/gmodule/*.c
-templates: scan
- gtkdoc-mktmpl --module=$(DOC_MODULE)
+# Headers to ignore
+IGNORE_HFILES= \
+ build \
+ gobject \
+ config.h \
+ gdatasetprivate.h \
+ glibintl.h \
+ gbsearcharray.h \
+ gmoduleconf.h \
+ gunibreak.h \
+ gunicomp.h \
+ gunidecomp.h \
+ gunichartables.h \
+ glibconfig-sysdefs.h \
+ gdebug.h \
+ gprintfint.h \
+ galias.h \
+ gmirroringtable.h \
+ gscripttable.h \
+ glib-mirroring-tab \
+ gnulib \
+ pcre \
+ update-pcre
-sgml:
- gtkdoc-mkdb --module=$(DOC_MODULE)
+# Extra options to supply to gtkdoc-mkdb
+MKDB_OPTIONS=--sgml-mode --output-format=xml --ignore-files=trio
-html:
- if ! test -d html ; then mkdir html ; fi
- -cd html && gtkdoc-mkhtml $(DOC_MODULE) ../$(DOC_MAIN_SGML_FILE)
+# Images to copy into HTML directory
+HTML_IMAGES = \
+ file-name-encodings.png \
+ mainloop-states.gif
-clean-local:
- rm -f *~ *.bak *.hierarchy *.signals *.args *-unused.txt
+# Extra SGML files that are included by $(DOC_MAIN_SGML_FILE)
+content_files = \
+ cross.sgml \
+ running.sgml \
+ building.sgml \
+ changes.sgml \
+ compiling.sgml \
+ resources.sgml \
+ regex-syntax.sgml \
+ version.xml \
+ glib-gettextize.xml
-maintainer-clean-local: clean
- rm -rf sgml html $(DOC_MODULE)-decl-list.txt $(DOC_MODULE)-decl.txt
+# Extra options to supply to gtkdoc-fixref
+FIXXREF_OPTIONS=
-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 common portion ...
+include $(top_srcdir)/gtk-doc.make
-EXTRA_DIST = \
- $(DOC_MAIN_SGML_FILE) \
- $(DOC_MODULE)-sections.txt \
- glib-decl.txt \
- glib-overrides.txt
+# Other files to distribute
+EXTRA_DIST += \
+ file-name-encodings.png \
+ file-name-encodings.sxd \
+ mainloop-states.fig \
+ mainloop-states.png \
+ mainloop-states.eps \
+ version.xml.in
-dist-hook:
- mkdir $(distdir)/tmpl
- cp -p tmpl/*.sgml $(distdir)/tmpl
+########################################################################
+
+man_MANS = glib-gettextize.1
+
+if ENABLE_MAN
+
+%.1 : %.xml
+ @XSLTPROC@ -nonet http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $<
+
+endif
+
+BUILT_EXTRA_DIST = $(man_MANS)
+
+dist-hook-local: $(BUILT_EXTRA_DIST)
+ files='$(BUILT_EXTRA_DIST)'; \
+ for f in $$files; do \
+ if test -f $$f; then d=.; else d=$(srcdir); fi; \
+ cp $$d/$$f $(distdir) || exit 1; done
-.PHONY : html sgml templates scan