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