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=gobject 8 9 # The top-level SGML file. 10 DOC_MAIN_SGML_FILE=gobject-docs.sgml 11 12 # The directory containing the source code. Relative to $(srcdir) 13 DOC_SOURCE_DIR=../../../gobject 14 15 # Extra options to supply to gtkdoc-scan 16 SCAN_OPTIONS=--deprecated-guards="G_DISABLE_DEPRECATED" \ 17 --ignore-decorators=G_GNUC_INTERNAL 18 19 # Extra options to supply to gtkdoc-mkdb 20 MKDB_OPTIONS=--sgml-mode --output-format=xml --name-space=g 21 22 # Used for dependencies 23 HFILE_GLOB=$(top_srcdir)/gobject/*.h 24 CFILE_GLOB=$(top_srcdir)/gobject/*.c 25 26 # Headers to ignore 27 IGNORE_HFILES=gobjectalias.h 28 29 # CFLAGS and LDFLAGS for compiling scan program. Only needed 30 # if $(DOC_MODULE).types is non-empty. 31 INCLUDES = \ 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) 38 GTKDOC_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 43 HTML_IMAGES = \ 44 $(srcdir)/images/glue.png 45 46 # Extra SGML files that are included by $(DOC_MAIN_SGML_FILE) 47 content_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 59 FIXXREF_OPTIONS=--extra-dir=$(srcdir)/../glib/html 60 61 include $(top_srcdir)/gtk-doc.make 62 63 # Other files to distribute 64 EXTRA_DIST += \ 65 gobject.cI \ 66 version.xml.in 67 68 ######################################################################## 69 70 man_MANS = glib-mkenums.1 glib-genmarshal.1 gobject-query.1 71 72 if ENABLE_MAN 73 74 %.1 : %.xml 75 @XSLTPROC@ -nonet http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $< 76 77 endif 78 79 BUILT_EXTRA_DIST = $(man_MANS) 80 81 dist-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