472126b11cd15b4e13be557b755417eb136b20d6
[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=$(addprefix $(top_srcdir)/glib/,$(shell cat $(top_builddir)/glib/glib-public-headers.txt)) $(top_srcdir)/gmodule/*.h
23 CFILE_GLOB=$(top_srcdir)/glib/*.c $(top_srcdir)/gmodule/*.c
24
25 # Images to copy into HTML directory
26 HTML_IMAGES =                           \
27         file-name-encodings.png         \
28         mainloop-states.gif
29
30 # Extra SGML files that are included by $(DOC_MAIN_SGML_FILE)
31 content_files =                         \
32         cross.sgml                      \
33         running.sgml                    \
34         building.sgml                   \
35         changes.sgml                    \
36         compiling.sgml                  \
37         resources.sgml                  \
38         regex-syntax.sgml               \
39         version.xml                     \
40         glib-gettextize.xml             \
41         gtester.xml                     \
42         gtester-report.xml              \
43         gvariant-varargs.xml            \
44         gvariant-text.xml
45
46 # Extra options to supply to gtkdoc-fixref
47 FIXXREF_OPTIONS=--extra-dir=$(srcdir)/../gobject/html --extra-dir=$(srcdir)/../gio/html
48
49 # include common portion ...
50 include $(top_srcdir)/gtk-doc.make
51
52 # Other files to distribute
53 EXTRA_DIST +=                           \
54         file-name-encodings.png         \
55         file-name-encodings.sxd         \
56         mainloop-states.fig             \
57         mainloop-states.png             \
58         mainloop-states.eps             \
59         version.xml.in
60
61 ########################################################################
62
63 man_MANS =                      \
64         glib-gettextize.1       \
65         gtester.1               \
66         gtester-report.1
67
68 if ENABLE_MAN
69
70 .xml.1:
71         @XSLTPROC@ -nonet http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $<
72
73 dist-local-check-mans-enabled:
74         if grep "Man generation disabled" $(man_MANS) >/dev/null; then $(RM) $(man_MANS); fi
75
76 else
77
78 $(man_MANS):
79         echo Man generation disabled.  Creating dummy $@.  Configure with --enable-man to enable it.
80         echo Man generation disabled.  Remove this file, configure with --enable-man, and rebuild > $@
81
82 dist-local-check-mans-enabled:
83         echo "*** --enable-man must be used in order to make dist"
84         false
85
86 endif
87
88 MAINTAINERCLEANFILES = $(man_MANS) $(BUILT_SOURCES)
89
90 EXTRA_DIST += $(man_MANS)
91
92 dist-hook-local: dist-local-check-mans-enabled glib-docs-clean all-local
93
94 glib-docs-clean: clean
95         cd $(srcdir) && rm -rf xml html