Fix doc generation
[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 HFILE_GLOB=$(addprefix $(top_srcdir)/gio/,$(shell cat $(top_srcdir)/gio/gio-public-headers.txt))
19 CFILE_GLOB=$(top_srcdir)/gio/*.c
20
21 # Headers to ignore
22 IGNORE_HFILES=                          \
23         gvdb                            \
24         tests                           \
25         asyncns.h                       \
26         fam-helper.h                    \
27         fen-data.h                      \
28         fen-helper.h                    \
29         fen-kernel.h                    \
30         fen-node.h                      \
31         gasynchelper.h                  \
32         gcontenttypeprivate.h           \
33         gdbusauth.h                     \
34         gdbusauthmechanism.h            \
35         gdbusauthmechanismanon.h        \
36         gdbusauthmechanismexternal.h    \
37         gdbusauthmechanismsha1.h        \
38         gdbusprivate.h                  \
39         gdbus-sessionbus.h              \
40         gdbus-tests.h                   \
41         gdummyproxyresolver.h           \
42         testenums.h                     \
43         gapplicationimpl.h              \
44         gdelayedsettingsbackend.h       \
45         gregistrysettingsbackend.h      \
46         gdummyfile.h                    \
47         gfamdirectorymonitor.h          \
48         gfamfilemonitor.h               \
49         gfendirectorymonitor.h          \
50         gfenfilemonitor.h               \
51         gfileattribute-priv.h           \
52         gfileinfo-priv.h                \
53         ginotifydirectorymonitor.h      \
54         ginotifyfilemonitor.h           \
55         gio-marshal.h                   \
56         gio.h                           \
57         gkeyfilesettingsbackend.h       \
58         gioenumtypes.h                  \
59         giomodule-priv.h                \
60         glocaldirectorymonitor.h        \
61         glocalfile.h                    \
62         glocalfileenumerator.h          \
63         glocalfileinfo.h                \
64         glocalfileinputstream.h         \
65         glocalfileiostream.h            \
66         glocalfilemonitor.h             \
67         glocalfileoutputstream.h        \
68         glocalvfs.h                     \
69         gmemorysettingsbackend.h        \
70         gmountprivate.h                 \
71         gnativevolumemonitor.h          \
72         gnetworkingprivate.h            \
73         gnullsettingsbackend.h          \
74         gpollfilemonitor.h              \
75         gproxyconnection.h              \
76         gsettingsbackendinternal.h      \
77         gsettingsschema.h               \
78         gsettings-mapping.h             \
79         gsocketinputstream.h            \
80         gsocketoutputstream.h           \
81         gthreadedresolver.h             \
82         gunionvolumemonitor.h           \
83         gunixdrive.h                    \
84         gunixmount.h                    \
85         gunixvolumemonitor.h            \
86         gunixresolver.h                 \
87         gunixvolume.h                   \
88         gvdb-builder.h                  \
89         gvdb-format.h                   \
90         gvdb-render.h                   \
91         gvolumeprivate.h                \
92         gwin32appinfo.h                 \
93         gwin32mount.h                   \
94         gwin32directorymonitor.h        \
95         gwin32inputstream.h             \
96         gwin32outputstream.h            \
97         gwin32volumemonitor.h           \
98         gwin32resolver.h                \
99         gwinhttpfile.h                  \
100         gwinhttpfileinputstream.h       \
101         gwinhttpfileoutputstream.h      \
102         gwinhttpvfs.h                   \
103         inotify-diag.h                  \
104         inotify-helper.h                \
105         inotify-kernel.h                \
106         inotify-missing.h               \
107         inotify-path.h                  \
108         inotify-sub.h                   \
109         local_inotify.h                 \
110         local_inotify_syscalls.h        \
111         xdgmime.h                       \
112         xdgmimealias.h                  \
113         xdgmimecache.h                  \
114         xdgmimeglob.h                   \
115         xdgmimeint.h                    \
116         xdgmimemagic.h                  \
117         xdgmimeparent.h                 \
118         xdgmimeicon.h                   \
119         winhttp.h                       \
120         $(NULL)
121
122 # CFLAGS and LDFLAGS for compiling scan program. Only needed
123 # if $(DOC_MODULE).types is non-empty.
124 INCLUDES = \
125         $(gio_INCLUDES)                 \
126         $(GLIB_DEBUG_FLAGS)
127
128 GTKDOC_LIBS = \
129         $(top_builddir)/glib/libglib-2.0.la             \
130         $(top_builddir)/gobject/libgobject-2.0.la       \
131         $(top_builddir)/gmodule/libgmodule-2.0.la       \
132         $(top_builddir)/gio/libgio-2.0.la               \
133         $(NULL)
134
135 # Extra options to supply to gtkdoc-mkdb
136 MKDB_OPTIONS = --output-format=xml --sgml-mode --name-space=g \
137         --ignore-files=libasyncns
138
139 # Images to copy into HTML directory
140 HTML_IMAGES =                   \
141         gvfs-overview.png
142
143 content_files =                 \
144         version.xml             \
145         overview.xml            \
146         migrating-posix.xml     \
147         migrating-gnome-vfs.xml \
148         migrating-gconf.xml     \
149         migrating-gdbus.xml     \
150         gio-querymodules.xml    \
151         glib-compile-schemas.xml\
152         gsettings.xml           \
153         gdbus.xml               \
154         gdbus-codegen.xml       \
155         $(NULL)
156
157 expand_content_files =          \
158         overview.xml            \
159         migrating-posix.xml     \
160         migrating-gnome-vfs.xml \
161         migrating-gconf.xml     \
162         migrating-gdbus.xml     \
163         gdbus-codegen.xml       \
164         $(NULL)
165
166 extra_files =                   \
167         version.xml.in          \
168         gvfs-overview.odg
169
170 include $(top_srcdir)/gtk-doc.make
171
172 EXTRA_DIST +=                   \
173         version.xml.in
174
175 man_MANS =                      \
176         gio-querymodules.1      \
177         glib-compile-schemas.1  \
178         gsettings.1             \
179         gdbus.1                 \
180         gdbus-codegen.1
181
182 if ENABLE_MAN
183
184 .xml.1:
185         @XSLTPROC@ -nonet http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $<
186
187 dist-local-check-mans-enabled:
188         if grep "Man generation disabled" $(man_MANS) >/dev/null; then $(RM) $(man_MANS); fi
189
190 else
191
192 $(man_MANS):
193         echo Man generation disabled.  Creating dummy $@.  Configure with --enable-man to enable it.
194         echo Man generation disabled.  Remove this file, configure with --enable-man, and rebuild > $@
195
196 dist-local-check-mans-enabled:
197         echo "*** --enable-man must be used in order to make dist"
198         false
199
200 endif
201
202 MAINTAINERCLEANFILES = $(man_MANS) $(BUILT_SOURCES)
203
204 EXTRA_DIST += $(man_MANS)
205
206 dist-hook-local: dist-local-check-mans-enabled gio-docs-clean all-local
207
208 gio-docs-clean: clean
209         cd $(srcdir) && rm -rf xml html