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=glib-docs.sgml
12 # The directory containing the source code. Relative to $(srcdir)
13 DOC_SOURCE_DIR=$(top_srcdir)/glib $(top_srcdir)/gmodule
15 # Extra options to supply to gtkdoc-scan
16 SCAN_OPTIONS=--deprecated-guards="G_DISABLE_DEPRECATED" --ignore-decorators="GLIB_VAR|G_GNUC_WARN_UNUSED_RESULT"
18 # Extra options to supply to gtkdoc-mkdb
19 MKDB_OPTIONS=--sgml-mode --output-format=xml --name-space=g
21 # Used for dependencies
22 HFILE_GLOB=$(top_srcdir)/glib/*.h $(top_srcdir)/gmodule/*.h
23 CFILE_GLOB=$(top_srcdir)/glib/*.c $(top_srcdir)/gmodule/*.c
25 # Ignore some private headers
51 gvariant-serialiser.h \
56 # Images to copy into HTML directory
58 file-name-encodings.png \
61 # Extra SGML files that are included by $(DOC_MAIN_SGML_FILE)
74 gvariant-varargs.xml \
77 # Extra options to supply to gtkdoc-fixref
78 FIXXREF_OPTIONS=--extra-dir=$(srcdir)/../gobject/html --extra-dir=$(srcdir)/../gio/html
80 # include common portion ...
81 include $(top_srcdir)/gtk-doc.make
83 # Other files to distribute
85 file-name-encodings.png \
86 file-name-encodings.sxd \
92 ########################################################################
102 @XSLTPROC@ -nonet http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $<
104 dist-local-check-mans-enabled:
105 if grep "Man generation disabled" $(man_MANS) >/dev/null; then $(RM) $(man_MANS); fi
110 echo Man generation disabled. Creating dummy $@. Configure with --enable-man to enable it.
111 echo Man generation disabled. Remove this file, configure with --enable-man, and rebuild > $@
113 dist-local-check-mans-enabled:
114 echo "*** --enable-man must be used in order to make dist"
119 MAINTAINERCLEANFILES = $(man_MANS) $(BUILT_SOURCES)
121 EXTRA_DIST += $(man_MANS)
123 dist-hook-local: dist-local-check-mans-enabled all-local
125 glib-docs-clean: clean
126 cd $(srcdir) && rm -rf xml html