6e19531c6fbb1cd11046b055ca5338e029eee8cc
[platform/upstream/glib.git] / docs / reference / gobject / Makefile.am
1 ## Process this file with automake to produce Makefile.in
2
3 # The name of the module.
4 DOC_MODULE=gobject
5
6 # The top-level SGML file.
7 DOC_MAIN_SGML_FILE=gobject-docs.sgml
8
9 # Extra options to supply to gtkdoc-scan
10 SCAN_OPTIONS=
11
12 # The directory containing the source code. Relative to $(srcdir)
13 DOC_SOURCE_DIR=../../../gobject
14
15 HFILE_GLOB=$(top_srcdir)/gobject/*.h
16 CFILE_GLOB=$(top_srcdir)/gobject/*.c
17
18 # CFLAGS and LDFLAGS for compiling scan program. Only needed
19 # if $(DOC_MODULE).types is non-empty.
20 INCLUDES = \
21         -I$(srcdir)                     \
22         -I$(top_srcdir)                 \
23         -I$(top_srcdir)/glib            \
24         -I$(top_builddir)               \
25         -I$(top_builddir)/glib          \
26         $(GLIB_DEBUG_FLAGS)
27 GTKDOC_LIBS = \
28         $(top_builddir)/glib/libglib-2.0.la     \
29         $(top_builddir)/gobject/libgobject-2.0.la
30
31 # Extra options to supply to gtkdoc-mkdb
32 MKDB_OPTIONS=
33
34 # Images to copy into HTML directory
35 HTML_IMAGES =
36
37 # Extra SGML files that are included by $(DOC_MAIN_SGML_FILE)
38 content_files = version.xml             \
39                 glib-mkenums.xml        \
40                 glib-genmarshal.xml     \
41                 gobject-query.xml
42
43 # Extra options to supply to gtkdoc-fixref
44 FIXXREF_OPTIONS=--extra-dir=$(srcdir)/../glib/html
45
46 include $(top_srcdir)/gtk-doc.make
47
48 # Other files to distribute
49 EXTRA_DIST +=           \
50         gobject.cI      \
51         version.xml.in
52
53 ########################################################################
54
55 man_MANS = glib-mkenums.1 glib-genmarshal.1 gobject-query.1
56
57 if ENABLE_MAN
58
59 %.1 : %.xml 
60         @XSLTPROC@ -nonet http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $<
61
62 endif
63
64 BUILT_EXTRA_DIST = $(man_MANS)
65
66 dist-hook-local: $(BUILT_EXTRA_DIST)
67         files='$(BUILT_EXTRA_DIST)';                            \
68         for f in $$files; do                                    \
69           if test -f $$f; then d=.; else d=$(srcdir); fi;       \
70           cp $$d/$$f $(distdir) || exit 1; done