gio: Fix srcdir != builddir build for docs
[platform/upstream/glib.git] / docs / reference / gio / Makefile.am
1 include $(top_srcdir)/Makefile.decl
2 NULL =
3
4 SUBDIRS = gdbus-object-manager-example
5
6 # The name of the module.
7 DOC_MODULE=gio
8
9 # The top-level SGML file.
10 DOC_MAIN_SGML_FILE=gio-docs.xml
11
12 # Extra options to supply to gtkdoc-scan
13 SCAN_OPTIONS=--deprecated-guards="G_DISABLE_DEPRECATED"
14
15 # The directory containing the source code. Relative to $(srcdir)
16 DOC_SOURCE_DIR=$(top_srcdir)/gio
17
18 BUILT_HFILES=gioenumtypes.h
19 HFILE_GLOB=$(filter-out $(addprefix %/, $(BUILT_HFILES)), $(addprefix $(top_srcdir)/gio/,$(shell cat $(top_builddir)/gio/gio-public-headers.txt))) $(addprefix $(top_builddir)/gio/,$(BUILT_HFILES))
20 CFILE_GLOB=$(top_srcdir)/gio/*.c
21
22 # CFLAGS and LDFLAGS for compiling scan program. Only needed
23 # if $(DOC_MODULE).types is non-empty.
24 INCLUDES = \
25         $(gio_INCLUDES)                 \
26         $(GLIB_DEBUG_FLAGS)
27
28 GTKDOC_LIBS = \
29         $(top_builddir)/glib/libglib-2.0.la             \
30         $(top_builddir)/gobject/libgobject-2.0.la       \
31         $(top_builddir)/gmodule/libgmodule-2.0.la       \
32         $(top_builddir)/gio/libgio-2.0.la               \
33         $(NULL)
34
35 # Extra options to supply to gtkdoc-mkdb
36 MKDB_OPTIONS = --output-format=xml --sgml-mode --name-space=g \
37         --ignore-files=libasyncns
38
39 # Images to copy into HTML directory
40 HTML_IMAGES =                   \
41         gvfs-overview.png
42
43 content_files =                 \
44         version.xml             \
45         overview.xml            \
46         migrating-posix.xml     \
47         migrating-gnome-vfs.xml \
48         migrating-gconf.xml     \
49         migrating-gdbus.xml     \
50         gio-querymodules.xml    \
51         glib-compile-schemas.xml\
52         gsettings.xml           \
53         gdbus.xml               \
54         gdbus-codegen.xml       \
55         $(NULL)
56
57 expand_content_files =          \
58         overview.xml            \
59         migrating-posix.xml     \
60         migrating-gnome-vfs.xml \
61         migrating-gconf.xml     \
62         migrating-gdbus.xml     \
63         gdbus-codegen.xml       \
64         $(NULL)
65
66 extra_files =                   \
67         version.xml.in          \
68         gvfs-overview.odg
69
70 include $(top_srcdir)/gtk-doc.make
71
72 EXTRA_DIST +=                   \
73         version.xml.in
74
75 man_MANS =                      \
76         gio-querymodules.1      \
77         glib-compile-schemas.1  \
78         gsettings.1             \
79         gdbus.1                 \
80         gdbus-codegen.1
81
82 if ENABLE_MAN
83
84 .xml.1:
85         @XSLTPROC@ -nonet http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $<
86
87 dist-local-check-mans-enabled:
88         if grep "Man generation disabled" $(man_MANS) >/dev/null; then $(RM) $(man_MANS); fi
89
90 else
91
92 $(man_MANS):
93         echo Man generation disabled.  Creating dummy $@.  Configure with --enable-man to enable it.
94         echo Man generation disabled.  Remove this file, configure with --enable-man, and rebuild > $@
95
96 dist-local-check-mans-enabled:
97         echo "*** --enable-man must be used in order to make dist"
98         false
99
100 endif
101
102 MAINTAINERCLEANFILES = $(man_MANS) $(BUILT_SOURCES)
103
104 EXTRA_DIST += $(man_MANS)
105
106 dist-hook-local: dist-local-check-mans-enabled gio-docs-clean all-local
107
108 gio-docs-clean: clean
109         cd $(srcdir) && rm -rf xml html