27fdf0b216d52246a0d6141f3a19810debd9c6d9
[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=../../../glib ../../../gmodule
14
15 # Extra options to supply to gtkdoc-scan
16 SCAN_OPTIONS=--deprecated-guards="G_DISABLE_DEPRECATED" --ignore-decorators="GLIB_VAR"
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 # Headers to ignore
26 IGNORE_HFILES=                  \
27         gdatasetprivate.h       \
28         glibintl.h              \
29         gbsearcharray.h         \
30         gmoduleconf.h           \
31         gunibreak.h             \
32         gunicomp.h              \
33         gunidecomp.h            \
34         gunichartables.h        \
35         glib_trace.h            \
36         libcharset.h            \
37         gdebug.h                \
38         gprintfint.h            \
39         gmirroringtable.h       \
40         gscripttable.h          \
41         glib-mirroring-tab      \
42         gnulib                  \
43         pcre                    \
44         update-pcre             \
45         gbuffer.h               \
46         gvariant-internal.h     \
47         gvariant-serialiser.h   \
48         gvariant-core.h         \
49         gvarianttypeinfo.h
50
51 # Images to copy into HTML directory
52 HTML_IMAGES =                           \
53         file-name-encodings.png         \
54         mainloop-states.gif
55
56 # Extra SGML files that are included by $(DOC_MAIN_SGML_FILE)
57 content_files =                         \
58         cross.sgml                      \
59         running.sgml                    \
60         building.sgml                   \
61         changes.sgml                    \
62         compiling.sgml                  \
63         resources.sgml                  \
64         regex-syntax.sgml               \
65         version.xml                     \
66         glib-gettextize.xml             \
67         gtester.xml                     \
68         gtester-report.xml              \
69         gvariant-varargs.xml
70
71 # Extra options to supply to gtkdoc-fixref
72 FIXXREF_OPTIONS=
73
74 # include common portion ...
75 include $(top_srcdir)/gtk-doc.make
76
77 # Other files to distribute
78 EXTRA_DIST +=                           \
79         file-name-encodings.png         \
80         file-name-encodings.sxd         \
81         mainloop-states.fig             \
82         mainloop-states.png             \
83         mainloop-states.eps             \
84         version.xml.in
85
86 ########################################################################
87
88 man_MANS =                      \
89         glib-gettextize.1       \
90         gtester.1               \
91         gtester-report.1
92
93 if ENABLE_MAN
94
95 .xml.1:
96         @XSLTPROC@ -nonet http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $<
97
98 dist-local-check-mans-enabled:
99         if grep "Man generation disabled" $(man_MANS) >/dev/null; then $(RM) $(man_MANS); fi
100
101 else
102
103 $(man_MANS):
104         echo Man generation disabled.  Creating dummy $@.  Configure with --enable-man to enable it.
105         echo Man generation disabled.  Remove this file, configure with --enable-man, and rebuild > $@
106
107 dist-local-check-mans-enabled:
108         echo "*** --enable-man must be used in order to make dist"
109         false
110
111 endif
112
113 MAINTAINERCLEANFILES = $(man_MANS) $(BUILT_SOURCES)
114
115 EXTRA_DIST += $(man_MANS)
116
117 dist-hook-local: dist-local-check-mans-enabled glib-docs-clean all-local
118
119 glib-docs-clean: clean
120         cd $(srcdir) && rm -rf xml html