Add an option to make glib-compile-resources use G_GNUC_INTERNAL
[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              --ignore-decorators="G_GNUC_WARN_UNUSED_RESULT"
15
16 # The directory containing the source code. Relative to $(srcdir)
17 DOC_SOURCE_DIR=$(top_srcdir)/gio
18
19 BUILT_HFILES=gioenumtypes.h
20 HFILE_GLOB=$(top_srcdir)/gio/*.h
21 CFILE_GLOB=$(top_srcdir)/gio/*.c
22
23 IGNORE_HFILES = \
24         fam                             \
25         fen                             \
26         gdbus-2.0                       \
27         gvdb                            \
28         inotify                         \
29         libasyncns                      \
30         tests                           \
31         win32                           \
32         xdgmime                         \
33         gapplicationimpl.h              \
34         gasynchelper.h                  \
35         gcontenttypeprivate.h           \
36         gdbusauth.h                     \
37         gdbusauthmechanismanon.h        \
38         gdbusauthmechanismexternal.h    \
39         gdbusauthmechanism.h            \
40         gdbusauthmechanismsha1.h        \
41         gdbusprivate.h                  \
42         gdelayedsettingsbackend.h       \
43         gdummyfile.h                    \
44         gdummyproxyresolver.h           \
45         gdummytlsbackend.h              \
46         gfileattribute-priv.h           \
47         gfileinfo-priv.h                \
48         giomodule-priv.h                \
49         glocaldirectorymonitor.h        \
50         glocalfileenumerator.h          \
51         glocalfile.h                    \
52         glocalfileinfo.h                \
53         glocalfileinputstream.h         \
54         glocalfileiostream.h            \
55         glocalfilemonitor.h             \
56         glocalfileoutputstream.h        \
57         glocalvfs.h                     \
58         gmountprivate.h                 \
59         gnativevolumemonitor.h          \
60         gnetworkingprivate.h            \
61         gnetworkmonitorbase.h           \
62         gnetworkmonitornetlink.h        \
63         gpollfilemonitor.h              \
64         gregistrysettingsbackend.h      \
65         gsettingsbackendinternal.h      \
66         gsettings-mapping.h             \
67         gsettingsschema-internal.h      \
68         gsocketinputstream.h            \
69         gsocketoutputstream.h           \
70         gsocks4aproxy.h                 \
71         gsocks4proxy.h                  \
72         gsocks5proxy.h                  \
73         gthreadedresolver.h             \
74         gunionvolumemonitor.h           \
75         gunixmount.h                    \
76         gunixresolver.h                 \
77         gunixvolume.h                   \
78         gunixvolumemonitor.h            \
79         gwin32appinfo.h                 \
80         gwin32mount.h                   \
81         gwin32resolver.h                \
82         gwin32volumemonitor.h
83
84
85 # CFLAGS and LDFLAGS for compiling scan program. Only needed
86 # if $(DOC_MODULE).types is non-empty.
87 INCLUDES = \
88         $(gio_INCLUDES)                 \
89         $(GLIB_DEBUG_FLAGS)
90
91 GTKDOC_LIBS = \
92         $(top_builddir)/glib/libglib-2.0.la             \
93         $(top_builddir)/gobject/libgobject-2.0.la       \
94         $(top_builddir)/gmodule/libgmodule-2.0.la       \
95         $(top_builddir)/gio/libgio-2.0.la               \
96         $(NULL)
97
98 # Extra options to supply to gtkdoc-mkdb
99 MKDB_OPTIONS = --output-format=xml --sgml-mode --name-space=g \
100         --ignore-files='libasyncns tests'
101
102 # Images to copy into HTML directory
103 HTML_IMAGES =                   \
104         gvfs-overview.png       \
105         menu-example.png        \
106         menu-model.png
107
108 content_files =                 \
109         version.xml             \
110         overview.xml            \
111         migrating-posix.xml     \
112         migrating-gnome-vfs.xml \
113         migrating-gconf.xml     \
114         migrating-gdbus.xml     \
115         gio-querymodules.xml    \
116         glib-compile-schemas.xml\
117         glib-compile-resources.xml      \
118         gsettings.xml           \
119         gresource.xml           \
120         gdbus.xml               \
121         gdbus-codegen.xml       \
122         $(NULL)
123
124 expand_content_files =          \
125         overview.xml            \
126         migrating-posix.xml     \
127         migrating-gnome-vfs.xml \
128         migrating-gconf.xml     \
129         migrating-gdbus.xml     \
130         gdbus-codegen.xml       \
131         $(NULL)
132
133 extra_files =                   \
134         version.xml.in          \
135         gvfs-overview.odg
136
137 # Extra options to supply to gtkdoc-fixref
138 FIXXREF_OPTIONS=--extra-dir=$(srcdir)/../glib/html --extra-dir=$(srcdir)/../gobject/html
139
140 include $(top_srcdir)/gtk-doc.make
141
142 EXTRA_DIST +=                   \
143         version.xml.in
144
145 man_MANS =
146
147 if ENABLE_MAN
148
149 man_MANS +=                     \
150         gio-querymodules.1      \
151         glib-compile-schemas.1  \
152         glib-compile-resources.1        \
153         gsettings.1             \
154         gresource.1             \
155         gdbus.1                 \
156         gdbus-codegen.1
157
158 XSLTPROC_FLAGS = \
159         --nonet \
160         --stringparam man.output.quietly 1 \
161         --stringparam funcsynopsis.style ansi \
162         --stringparam man.th.extra1.suppress 1 \
163         --stringparam man.authors.section.enabled 0 \
164         --stringparam man.copyright.section.enabled 0
165
166 .xml.1:
167         $(AM_V_GEN) $(XSLTPROC) $(XSLTPROC_FLAGS) http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $<
168
169 endif
170
171 CLEANFILES ?=
172 CLEANFILES += $(man_MANS)
173
174 EXTRA_DIST += $(man_MANS)
175
176 dist-hook-local: all-local
177
178 gio-docs-clean: clean
179         cd $(srcdir) && rm -rf xml html