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