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