154936b89908c4b4f801ed8171b2a42d8bd4bc99
[platform/upstream/glib.git] / docs / reference / glib / Makefile.am
1 ## Process this file with automake to produce Makefile.in
2 include $(top_srcdir)/Makefile.decl
3
4 AUTOMAKE_OPTIONS = 1.6
5
6 # The name of the module.
7 DOC_MODULE=glib
8
9 # The top-level SGML file.
10 DOC_MAIN_SGML_FILE=glib-docs.sgml
11
12 # The directory containing the source code. Relative to $(srcdir)
13 DOC_SOURCE_DIR=$(top_srcdir)/glib $(top_srcdir)/gmodule
14
15 # Extra options to supply to gtkdoc-scan
16 SCAN_OPTIONS=--deprecated-guards="G_DISABLE_DEPRECATED" --ignore-decorators="GLIB_VAR|G_GNUC_WARN_UNUSED_RESULT"
17
18 # Extra options to supply to gtkdoc-mkdb
19 MKDB_OPTIONS=--sgml-mode --output-format=xml --name-space=g
20
21 # Used for dependencies
22 HFILE_GLOB=$(top_srcdir)/glib/*.h $(top_srcdir)/gmodule/*.h
23 CFILE_GLOB=$(top_srcdir)/glib/*.c $(top_srcdir)/gmodule/*.c
24
25 # Ignore some private headers
26 IGNORE_HFILES = \
27         gallocator.h            \
28         gdatasetprivate.h       \
29         glibintl.h              \
30         gbsearcharray.h         \
31         glib-private.h          \
32         gmoduleconf.h           \
33         gthreadprivate.h        \
34         gunibreak.h             \
35         gunicomp.h              \
36         gunidecomp.h            \
37         gunichartables.h        \
38         glib_probes.h           \
39         glib_trace.h            \
40         libcharset.h            \
41         gdebug.h                \
42         gprintfint.h            \
43         gmirroringtable.h       \
44         gscripttable.h          \
45         glib-mirroring-tab      \
46         gnulib                  \
47         pcre                    \
48         update-pcre             \
49         gbytesprivate.h         \
50         gvariant-internal.h     \
51         gvariant-serialiser.h   \
52         gvariant-core.h         \
53         gvarianttypeinfo.h      \
54         gwakeup.h
55
56 # Images to copy into HTML directory
57 HTML_IMAGES =                           \
58         file-name-encodings.png         \
59         mainloop-states.gif
60
61 # Extra SGML files that are included by $(DOC_MAIN_SGML_FILE)
62 content_files =                         \
63         cross.sgml                      \
64         running.sgml                    \
65         building.sgml                   \
66         changes.sgml                    \
67         resources.sgml                  \
68         regex-syntax.sgml               \
69         version.xml                     \
70         glib-gettextize.xml             \
71         gtester.xml                     \
72         gtester-report.xml              \
73         gvariant-varargs.xml            \
74         gvariant-text.xml
75
76 expand_content_files =                  \
77         compiling.sgml
78
79 # Extra options to supply to gtkdoc-fixref
80 FIXXREF_OPTIONS=--extra-dir=$(srcdir)/../gobject/html --extra-dir=$(srcdir)/../gio/html
81
82 # include common portion ...
83 include $(top_srcdir)/gtk-doc.make
84
85 # Other files to distribute
86 EXTRA_DIST +=                           \
87         file-name-encodings.png         \
88         file-name-encodings.sxd         \
89         mainloop-states.fig             \
90         mainloop-states.png             \
91         mainloop-states.eps             \
92         version.xml.in
93
94 ########################################################################
95
96 man_MANS =                      \
97         glib-gettextize.1       \
98         gtester.1               \
99         gtester-report.1
100
101 if ENABLE_MAN
102
103 .xml.1:
104         @XSLTPROC@ -nonet http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $<
105
106 dist-local-check-mans-enabled:
107         if grep "Man generation disabled" $(man_MANS) >/dev/null; then $(RM) $(man_MANS); fi
108
109 else
110
111 $(man_MANS):
112         echo Man generation disabled.  Creating dummy $@.  Configure with --enable-man to enable it.
113         echo Man generation disabled.  Remove this file, configure with --enable-man, and rebuild > $@
114
115 dist-local-check-mans-enabled:
116         echo "*** --enable-man must be used in order to make dist"
117         false
118
119 endif
120
121 MAINTAINERCLEANFILES = $(man_MANS) $(BUILT_SOURCES)
122
123 EXTRA_DIST += $(man_MANS)
124
125 dist-hook-local: dist-local-check-mans-enabled all-local
126
127 glib-docs-clean: clean
128         cd $(srcdir) && rm -rf xml html