beff782d3052d6d7834d4aa7b564f19a4c28f399
[platform/upstream/glib.git] / docs / reference / gobject / 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=gobject
7
8 # The top-level SGML file.
9 DOC_MAIN_SGML_FILE=gobject-docs.xml
10
11 # The directory containing the source code. Relative to $(srcdir)
12 DOC_SOURCE_DIR=$(top_srcdir)/gobject
13
14 # Extra options to supply to gtkdoc-scan
15 SCAN_OPTIONS=--deprecated-guards="G_DISABLE_DEPRECATED" \
16              --ignore-decorators="G_GNUC_INTERNAL|G_GNUC_WARN_UNUSED_RESULT"
17
18 # Extra options to supply to gtkdoc-mkdb
19 MKDB_OPTIONS=--output-format=xml --name-space=g
20
21 # Used for dependencies
22 HFILE_GLOB=$(top_srcdir)/gobject/*.h
23 CFILE_GLOB=$(top_srcdir)/gobject/*.c
24
25 # Headers to ignore
26 IGNORE_HFILES = \
27         tests                   \
28         gobject_trace.h         \
29         gtype-private.h         \
30         gatomicarray.h
31
32
33 # CFLAGS and LDFLAGS for compiling scan program. Only needed
34 # if $(DOC_MODULE).types is non-empty.
35 AM_CPPFLAGS =                           \
36         -I$(srcdir)                     \
37         $(gobject_INCLUDES)             \
38         $(GLIB_DEBUG_FLAGS)
39
40 GTKDOC_LIBS =                                   \
41         $(top_builddir)/glib/libglib-2.0.la     \
42         $(top_builddir)/gobject/libgobject-2.0.la
43
44 # Images to copy into HTML directory
45 HTML_IMAGES =  \
46         images/glue.png
47
48 # Extra SGML files that are included by $(DOC_MAIN_SGML_FILE)
49 content_files = version.xml             \
50                 glib-mkenums.xml        \
51                 glib-genmarshal.xml     \
52                 gobject-query.xml \
53                 tut_gobject.xml \
54                 tut_gsignal.xml \
55                 tut_gtype.xml \
56                 tut_howto.xml \
57                 tut_intro.xml \
58                 tut_tools.xml
59
60 # Extra options to supply to gtkdoc-fixref
61 FIXXREF_OPTIONS=--extra-dir=$(srcdir)/../glib/html
62
63 include $(top_srcdir)/gtk-doc.make
64
65 # Other files to distribute
66 EXTRA_DIST +=           \
67         gobject.cI      \
68         version.xml.in
69
70 ########################################################################
71
72 man_MANS =
73
74 if ENABLE_MAN
75
76 man_MANS +=                     \
77         glib-mkenums.1          \
78         glib-genmarshal.1       \
79         gobject-query.1
80
81
82 XSLTPROC_FLAGS = \
83         --nonet \
84         --stringparam man.output.quietly 1 \
85         --stringparam funcsynopsis.style ansi \
86         --stringparam man.th.extra1.suppress 1 \
87         --stringparam man.authors.section.enabled 0 \
88         --stringparam man.copyright.section.enabled 0
89
90 .xml.1:
91         $(AM_V_GEN) $(XSLTPROC) $(XSLTPROC_FLAGS) http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $<
92
93 endif
94
95 CLEANFILES ?=
96 CLEANFILES += $(man_MANS)
97
98 EXTRA_DIST += $(man_MANS)
99
100 dist-hook-local: all-local
101
102 gobject-docs-clean: clean
103         cd $(srcdir) && rm -rf xml html