1 ### Makefile.am for Gtk-Doc directory #########################################
2 # Adapted from examples/Makefile.am in Gtk-Doc distribution
4 # We require automake 1.6 at least.
7 # The name of the module, e.g. 'glib'.
10 # Uncomment for versioned docs and specify the version of the module, e.g. '2'.
11 # DOC_MODULE_VERSION = 2
13 # The top-level SGML file. You can change this if you want to.
14 DOC_MAIN_SGML_FILE = $(DOC_MODULE)-docs.sgml
16 # The directory containing the source code. Relative to $(srcdir).
17 # gtk-doc will search all .c & .h files beneath here for inline comments
18 # documenting the functions and macros.
19 DOC_SOURCE_DIR = ../../libchimara
21 # Extra options to pass to gtkdoc-scangobj. Not normally needed.
24 # Extra options to supply to gtkdoc-scan.
25 # DO NOT use --rebuild-types, because it will think glk_window_get_type()
26 # is a GObject type. That makes it segfault.
29 # Extra options to supply to gtkdoc-mkdb.
30 MKDB_OPTIONS = --sgml-mode --output-format=xml
32 # Extra options to supply to gtkdoc-mktmpl
35 # Extra options to supply to gtkdoc-mkhtml
36 # The --path is because Gtk-doc is broken on non-distcheck vpath builds! Sigh.
37 # But it only works on Gtk-doc 1.11 and higher. So if you want to do a vpath
38 # build then uncomment this and require 1.11 in configure.ac. If you want to do
39 # vpath build on Debian, then you're S.O.L. Complain to Gtk-doc and Debian.
40 # MKHTML_OPTIONS = --path="$(abs_builddir)"
43 # Extra options to supply to gtkdoc-fixref. Not normally needed.
46 # Used for dependencies. The docs will be rebuilt if any of these change.
47 HFILE_GLOB = $(top_srcdir)/libchimara/*.h
48 CFILE_GLOB = $(top_srcdir)/libchimara/*.c
50 # Extra headers to include when scanning, which are not under DOC_SOURCE_DIR
53 # Header files to ignore when scanning. Use base file name, no paths
54 IGNORE_HFILES = chimara-glk-private.h chimara-marshallers.h \
55 abort.h charset.h event.h fileref.h graphics.h hyperlink.h init.h input.h \
56 magic.h mouse.h pager.h resource.h stream.h strio.h style.h timer.h window.h
58 # Images to copy into HTML directory.
81 # Extra SGML files that are included by $(DOC_MAIN_SGML_FILE).
82 content_files = version.xml \
84 glk-front-matter.sgml \
85 glk-introduction.sgml \
86 glk-main-function.sgml \
87 glk-api-conventions.sgml \
88 glk-character-encoding.sgml \
92 glk-window-arrangement.sgml \
93 glk-display-style.sgml \
94 glk-other-events.sgml \
95 glk-sound-resources.sgml \
101 # SGML files where gtk-doc abbreviations (#GtkWidget) are expanded
102 # These files must be listed here *and* in content_files
103 expand_content_files = \
104 glk-main-function.sgml \
105 glk-api-conventions.sgml \
107 glk-line-input.sgml \
108 glk-window-arrangement.sgml \
109 glk-display-style.sgml \
110 glk-other-events.sgml
112 # CFLAGS and LDFLAGS for compiling gtkdoc-scangobj with your library.
113 # Only needed if you are using gtkdoc-scangobj to dynamically query widget
114 # signals and properties.
115 GTKDOC_CFLAGS = -I$(top_srcdir) $(CHIMARA_CFLAGS)
116 GTKDOC_LIBS = $(top_builddir)/libchimara/libchimara.la
118 # This includes the standard gtk-doc make rules, copied by gtkdocize.
119 include $(top_srcdir)/gtk-doc.make
121 # Other files to distribute
122 EXTRA_DIST += version.xml.in
124 # Files not to distribute
125 # for --rebuild-types in $(SCAN_OPTIONS), e.g. $(DOC_MODULE).types
126 # for --rebuild-sections in $(SCAN_OPTIONS), e.g. $(DOC_MODULE)-sections.txt
127 CLEANFILES += selectors.xml
128 DISTCLEANFILES = version.xml $(DOC_MODULE)-overrides.txt
130 # Uncomment this if you want your docs-status tested during 'make check'
131 # Comment this while not all symbols are documented, otherwise distcheck fails
133 #TESTS_ENVIRONMENT = cd $(srcdir) &&
134 #TESTS = $(GTKDOC_CHECK)
137 dist_noinst_SCRIPTS = build-selector-table.pl
139 selectors.xml: $(srcdir)/../../libchimara/gi_dispa.c
140 $(PERL) build-selector-table.pl $< > $@