1 ## Process this file with automake to produce Makefile.in
2 include $(top_srcdir)/Makefile.decl
6 # The name of the module.
9 # The top-level SGML file.
10 DOC_MAIN_SGML_FILE=gobject-docs.sgml
12 # The directory containing the source code. Relative to $(srcdir)
13 DOC_SOURCE_DIR=$(top_srcdir)/gobject
15 # Extra options to supply to gtkdoc-scan
16 SCAN_OPTIONS=--deprecated-guards="G_DISABLE_DEPRECATED" \
17 --ignore-decorators="G_GNUC_INTERNAL|G_GNUC_WARN_UNUSED_RESULT"
19 # Extra options to supply to gtkdoc-mkdb
20 MKDB_OPTIONS=--sgml-mode --output-format=xml --name-space=g
22 # Used for dependencies
23 HFILE_GLOB=$(top_srcdir)/gobject/*.h
24 CFILE_GLOB=$(top_srcdir)/gobject/*.c
33 # CFLAGS and LDFLAGS for compiling scan program. Only needed
34 # if $(DOC_MODULE).types is non-empty.
40 $(top_builddir)/glib/libglib-2.0.la \
41 $(top_builddir)/gobject/libgobject-2.0.la
43 # Images to copy into HTML directory
47 # Extra SGML files that are included by $(DOC_MAIN_SGML_FILE)
48 content_files = version.xml \
59 # Extra options to supply to gtkdoc-fixref
60 FIXXREF_OPTIONS=--extra-dir=$(srcdir)/../glib/html
62 include $(top_srcdir)/gtk-doc.make
64 # Other files to distribute
69 ########################################################################
79 @XSLTPROC@ -nonet http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $<
81 dist-local-check-mans-enabled:
82 if grep "Man generation disabled" $(man_MANS) >/dev/null; then $(RM) $(man_MANS); fi
87 echo Man generation disabled. Creating dummy $@. Configure with --enable-man to enable it.
88 echo Man generation disabled. Remove this file, configure with --enable-man, and rebuild > $@
90 dist-local-check-mans-enabled:
91 echo "*** --enable-man must be used in order to make dist"
96 MAINTAINERCLEANFILES = $(man_MANS) $(BUILT_SOURCES)
98 EXTRA_DIST += $(man_MANS)
100 dist-hook-local: dist-local-check-mans-enabled all-local
102 gobject-docs-clean: clean
103 cd $(srcdir) && rm -rf xml html