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
38 # Extra options to supply to gtkdoc-fixref. Not normally needed.
41 # Used for dependencies. The docs will be rebuilt if any of these change.
42 HFILE_GLOB = $(top_srcdir)/libchimara/*.h
43 CFILE_GLOB = $(top_srcdir)/libchimara/*.c
45 # Extra headers to include when scanning, which are not under DOC_SOURCE_DIR
48 # Header files to ignore when scanning. Use base file name, no paths
49 IGNORE_HFILES = chimara-glk-private.h \
50 abort.h charset.h event.h input.h stream.h window.h
52 # Images to copy into HTML directory.
54 $(srcdir)/images/fig1.png \
55 $(srcdir)/images/fig2.png \
56 $(srcdir)/images/fig3a.png \
57 $(srcdir)/images/fig3b.png \
58 $(srcdir)/images/fig3c.png \
59 $(srcdir)/images/fig4a.png \
60 $(srcdir)/images/fig4b.png \
61 $(srcdir)/images/fig4c.png \
62 $(srcdir)/images/fig5-7a.png \
63 $(srcdir)/images/fig6.png \
64 $(srcdir)/images/fig7b.png \
65 $(srcdir)/images/fig7c.png \
66 $(srcdir)/images/fig7d.png \
67 $(srcdir)/images/fig7e.png \
68 $(srcdir)/images/fig8a.png \
69 $(srcdir)/images/fig8b.png \
70 $(srcdir)/images/fig8c.png \
71 $(srcdir)/images/fig9.png \
72 $(srcdir)/images/fig10.png \
73 $(srcdir)/images/fig11.png
75 # Extra SGML files that are included by $(DOC_MAIN_SGML_FILE).
76 content_files = version.xml \
78 glk-front-matter.sgml \
79 glk-introduction.sgml \
80 glk-main-function.sgml \
81 glk-api-conventions.sgml \
82 glk-character-encoding.sgml \
86 glk-window-arrangement.sgml \
87 glk-display-style.sgml \
88 glk-other-events.sgml \
94 # SGML files where gtk-doc abbreviations (#GtkWidget) are expanded
95 # These files must be listed here *and* in content_files
96 expand_content_files = \
97 glk-main-function.sgml \
98 glk-api-conventions.sgml \
100 glk-line-input.sgml \
101 glk-window-arrangement.sgml \
102 glk-display-style.sgml \
103 glk-other-events.sgml
105 # CFLAGS and LDFLAGS for compiling gtkdoc-scangobj with your library.
106 # Only needed if you are using gtkdoc-scangobj to dynamically query widget
107 # signals and properties.
108 GTKDOC_CFLAGS = -I$(top_srcdir) $(CHIMARA_CFLAGS)
109 GTKDOC_LIBS = $(top_builddir)/libchimara/libchimara.la
111 # This includes the standard gtk-doc make rules, copied by gtkdocize.
112 include $(top_srcdir)/gtk-doc.make
114 # Other files to distribute
115 EXTRA_DIST += version.xml.in
117 # Files not to distribute
118 # for --rebuild-types in $(SCAN_OPTIONS), e.g. $(DOC_MODULE).types
119 # for --rebuild-sections in $(SCAN_OPTIONS), e.g. $(DOC_MODULE)-sections.txt
120 CLEANFILES += selectors.xml
121 DISTCLEANFILES = version.xml $(DOC_MODULE)-overrides.txt
123 # Uncomment this if you want your docs-status tested during 'make check'
124 # Comment this while not all symbols are documented, otherwise distcheck fails
126 #TESTS_ENVIRONMENT = cd $(srcdir) &&
127 #TESTS = $(GTKDOC_CHECK)
130 dist_noinst_SCRIPTS = build-selector-table.pl
132 selectors.xml: $(srcdir)/../../libchimara/gi_dispa.c
133 $(PERL) build-selector-table.pl $< > $@