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