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