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