tests: put some Makefile.am vars to test environment for gtkdoc-check
[gtk-doc.git] / tests / annotations / docs / Makefile.am
blob77e27c66d92e8c5f50f708a3939f6a6b35735415
1 ## Process this file with automake to produce Makefile.in
3 # We require automake 1.6 at least.
4 AUTOMAKE_OPTIONS = 1.6
6 # The name of the module, e.g. 'glib'.
7 DOC_MODULE=tester
9 # The top-level SGML file. You can change this if you want to.
10 DOC_MAIN_SGML_FILE=$(DOC_MODULE)-docs.xml
12 # The directory containing the source code. Relative to $(srcdir).
13 # gtk-doc will search all .c & .h files beneath here for inline comments
14 # documenting the functions and macros.
15 DOC_SOURCE_DIR=$(top_srcdir)/tests/annotations/src
17 # Extra options to pass to gtkdoc-scangobj. Not normally needed.
18 SCANGOBJ_OPTIONS=2>&1 | tee gtkdoc-scangobj.log
20 # Extra options to supply to gtkdoc-scan.
21 SCAN_OPTIONS=--deprecated-guards="GTKDOC_TESTER_DISABLE_DEPRECATED" \
22   --ignore-decorators="GLIB_VAR" \
23   2>&1 | tee gtkdoc-scan.log
25 # Extra options to supply to gtkdoc-mkdb.
26 MKDB_OPTIONS=--xml-mode 2>&1 | tee gtkdoc-mkdb.log
28 # Extra options to supply to gtkdoc-mktmpl
29 # e.g. MKTMPL_OPTIONS=--only-section-tmpl
30 MKTMPL_OPTIONS=2>&1 | tee gtkdoc-mktmpl.log
32 # Extra options to supply to gtkdoc-mkhtml
33 MKHTML_OPTIONS=2>&1 | tee ../gtkdoc-mkhtml.log
35 # Extra options to supply to gtkdoc-fixref. Not normally needed.
36 # --html-dir=$(HTML_DIR)
37 FIXXREF_OPTIONS=--extra-dir=$(glib_prefix)/share/gtk-doc/html 2>&1 | tee gtkdoc-fixxref.log
39 # Used for dependencies. The docs will be rebuilt if any of these change.
40 HFILE_GLOB=$(top_srcdir)/tests/annotations/src/*.h
41 CFILE_GLOB=$(top_srcdir)/tests/annotations/src/*.c
43 # Header files to ignore when scanning.
44 IGNORE_HFILES=config.h
46 # Images to copy into HTML directory.
47 HTML_IMAGES =
49 # Extra SGML files that are included by $(DOC_MAIN_SGML_FILE).
50 # e.g. content_files=running.sgml building.sgml changes-2.0.sgml
51 content_files =
53 # SGML files where gtk-doc abbrevations (#GtkWidget) are expanded
54 # These files must be listed here *and* in content_files
55 # e.g. expand_content_files=running.sgml
56 expand_content_files=
58 # CFLAGS and LDFLAGS for compiling gtkdoc-scangobj with your library.
59 # Only needed if you are using gtkdoc-scangobj to dynamically query widget
60 # signals and properties.
61 GTKDOC_CFLAGS = -I$(top_srcdir)/tests/annotations/src $(TEST_DEPS_CFLAGS)
62 GTKDOC_LIBS = $(TEST_DEPS_LIBS) $(top_builddir)/tests/annotations/src/libtester.la
64 # include generic part
65 include $(top_srcdir)/tests/gtk-doc.notmpl.make
67 # Other files to distribute
68 # e.g. EXTRA_DIST += version.xml.in
69 EXTRA_DIST +=
71 DISTCLEANFILES = \
72         gtkdoc-scan.log \
73         gtkdoc-scangobj.log \
74         gtkdoc-mktmpl.log \
75         gtkdoc-mkdb.log \
76         gtkdoc-mkhtml.log \
77         gtkdoc-fixxref.log
79 if BUILD_TESTS
80 TESTS_ENVIRONMENT = \
81         DOC_MODULE=$(DOC_MODULE) DOC_MAIN_SGML_FILE=$(DOC_MAIN_SGML_FILE) \
82         PATH=$(abs_top_builddir):$(srcdir):$(PATH) \
83         PERL5LIB=$(abs_top_builddir):$(PERL5LIB)
84 endif
86 -include $(top_srcdir)/git.mk