gio docs: lots more fixes
[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 BUILT_HFILES=gioenumtypes.h
19 HFILE_GLOB=$(top_srcdir)/gio/*.h
20 CFILE_GLOB=$(top_srcdir)/gio/*.c
21
22 IGNORE_HFILES = \
23         fam                             \
24         fen                             \
25         gdbus-2.0                       \
26         gvdb                            \
27         inotify                         \
28         libasyncns                      \
29         tests                           \
30         win32                           \
31         xdgmime                         \
32         gapplicationimpl.h              \
33         gasynchelper.h                  \
34         gcontenttypeprivate.h           \
35         gdbusauth.h                     \
36         gdbusauthmechanismanon.h        \
37         gdbusauthmechanismexternal.h    \
38         gdbusauthmechanism.h            \
39         gdbusauthmechanismsha1.h        \
40         gdbusprivate.h                  \
41         gdelayedsettingsbackend.h       \
42         gdummyfile.h                    \
43         gdummyproxyresolver.h           \
44         gdummytlsbackend.h              \
45         gfileattribute-priv.h           \
46         gfileinfo-priv.h                \
47         giomodule-priv.h                \
48         glocaldirectorymonitor.h        \
49         glocalfileenumerator.h          \
50         glocalfile.h                    \
51         glocalfileinfo.h                \
52         glocalfileinputstream.h         \
53         glocalfileiostream.h            \
54         glocalfilemonitor.h             \
55         glocalfileoutputstream.h        \
56         glocalvfs.h                     \
57         gmountprivate.h                 \
58         gnetworkingprivate.h            \
59         gpollfilemonitor.h              \
60         gregistrysettingsbackend.h      \
61         gsettingsbackendinternal.h      \
62         gsettings-mapping.h             \
63         gsettingsschema.h               \
64         gsocketinputstream.h            \
65         gsocketoutputstream.h           \
66         gsocks4aproxy.h                 \
67         gsocks4proxy.h                  \
68         gsocks5proxy.h                  \
69         gthreadedresolver.h             \
70         gunionvolumemonitor.h           \
71         gunixmount.h                    \
72         gunixresolver.h                 \
73         gunixvolume.h                   \
74         gunixvolumemonitor.h            \
75         gwin32appinfo.h                 \
76         gwin32mount.h                   \
77         gwin32resolver.h                \
78         gwin32volumemonitor.h
79
80
81 # CFLAGS and LDFLAGS for compiling scan program. Only needed
82 # if $(DOC_MODULE).types is non-empty.
83 INCLUDES = \
84         $(gio_INCLUDES)                 \
85         $(GLIB_DEBUG_FLAGS)
86
87 GTKDOC_LIBS = \
88         $(top_builddir)/glib/libglib-2.0.la             \
89         $(top_builddir)/gobject/libgobject-2.0.la       \
90         $(top_builddir)/gmodule/libgmodule-2.0.la       \
91         $(top_builddir)/gio/libgio-2.0.la               \
92         $(NULL)
93
94 # Extra options to supply to gtkdoc-mkdb
95 MKDB_OPTIONS = --output-format=xml --sgml-mode --name-space=g \
96         --ignore-files='libasyncns tests'
97
98 # Images to copy into HTML directory
99 HTML_IMAGES =                   \
100         gvfs-overview.png
101
102 content_files =                 \
103         version.xml             \
104         overview.xml            \
105         migrating-posix.xml     \
106         migrating-gnome-vfs.xml \
107         migrating-gconf.xml     \
108         migrating-gdbus.xml     \
109         gio-querymodules.xml    \
110         glib-compile-schemas.xml\
111         gsettings.xml           \
112         gdbus.xml               \
113         gdbus-codegen.xml       \
114         $(NULL)
115
116 expand_content_files =          \
117         overview.xml            \
118         migrating-posix.xml     \
119         migrating-gnome-vfs.xml \
120         migrating-gconf.xml     \
121         migrating-gdbus.xml     \
122         gdbus-codegen.xml       \
123         $(NULL)
124
125 extra_files =                   \
126         version.xml.in          \
127         gvfs-overview.odg
128
129 # Extra options to supply to gtkdoc-fixref
130 FIXXREF_OPTIONS=--extra-dir=$(srcdir)/../glib/html --extra-dir=$(srcdir)/../gobject/html
131
132 include $(top_srcdir)/gtk-doc.make
133
134 EXTRA_DIST +=                   \
135         version.xml.in
136
137 man_MANS =                      \
138         gio-querymodules.1      \
139         glib-compile-schemas.1  \
140         gsettings.1             \
141         gdbus.1                 \
142         gdbus-codegen.1
143
144 if ENABLE_MAN
145
146 .xml.1:
147         @XSLTPROC@ -nonet http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $<
148
149 dist-local-check-mans-enabled:
150         if grep "Man generation disabled" $(man_MANS) >/dev/null; then $(RM) $(man_MANS); fi
151
152 else
153
154 $(man_MANS):
155         echo Man generation disabled.  Creating dummy $@.  Configure with --enable-man to enable it.
156         echo Man generation disabled.  Remove this file, configure with --enable-man, and rebuild > $@
157
158 dist-local-check-mans-enabled:
159         echo "*** --enable-man must be used in order to make dist"
160         false
161
162 endif
163
164 MAINTAINERCLEANFILES = $(man_MANS) $(BUILT_SOURCES)
165
166 EXTRA_DIST += $(man_MANS)
167
168 dist-hook-local: dist-local-check-mans-enabled gio-docs-clean all-local
169
170 gio-docs-clean: clean
171         cd $(srcdir) && rm -rf xml html