mkhtml/pdf: fix out-of-srcdir builds
[gtk-doc.git] / tests / gobject / docs / Makefile.am
blobc5b6bd053b8abc2266b16559d033d3284d0b25bb
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/gobject/src
17 # Extra options to pass to gtkdoc-scangobj. Not normally needed.
18 SCANGOBJ_OPTIONS=
20 # Extra options to supply to gtkdoc-scan.
21 SCAN_OPTIONS=--deprecated-guards="GTKDOC_TESTER_DISABLE_DEPRECATED" \
22   --rebuild-types
24 # Extra options to supply to gtkdoc-mkdb.
25 MKDB_OPTIONS=--xml-mode
27 # Extra options to supply to gtkdoc-mkhtml
28 MKHTML_OPTIONS=--path=$(abs_top_srcdir)/tests/gobject/examples
30 # Extra options to supply to gtkdoc-mkpdf
31 MKPDF_OPTIONS=--path=$(abs_top_srcdir)/tests/gobject/examples
33 # Extra options to supply to gtkdoc-fixref. Not normally needed.
34 # --html-dir=$(HTML_DIR)
35 FIXXREF_OPTIONS=--extra-dir=$(glib_prefix)/share/gtk-doc/html
37 # Used for dependencies. The docs will be rebuilt if any of these change.
38 HFILE_GLOB=$(top_srcdir)/tests/gobject/src/*.h
39 CFILE_GLOB=$(top_srcdir)/tests/gobject/src/*.c
41 # Header files to ignore when scanning.
42 IGNORE_HFILES=config.h
44 # Images to copy into HTML directory.
45 HTML_IMAGES = \
46         $(srcdir)/images/object.png
48 # Extra SGML files that are included by $(DOC_MAIN_SGML_FILE).
49 # e.g. content_files=running.sgml building.sgml changes-2.0.sgml
50 content_files =
52 # SGML files where gtk-doc abbrevations (#GtkWidget) are expanded
53 # These files must be listed here *and* in content_files
54 # e.g. expand_content_files=running.sgml
55 expand_content_files=
57 # CFLAGS and LDFLAGS for compiling gtkdoc-scangobj with your library.
58 # Only needed if you are using gtkdoc-scangobj to dynamically query widget
59 # signals and properties.
60 GTKDOC_CFLAGS = -I$(top_srcdir)/tests/gobject/src $(TEST_DEPS_CFLAGS)
61 GTKDOC_LIBS = $(TEST_DEPS_LIBS) $(top_builddir)/tests/gobject/src/libtester.la
63 # include generic part
64 include $(top_srcdir)/tests/gtk-doc.make
66 # Other files to distribute
67 # e.g. EXTRA_DIST += version.xml.in
68 EXTRA_DIST += tester.types
70 CLEANFILES += \
71   $(DOC_MODULE)-overrides.txt \
72   $(DOC_MODULE).types
74 if BUILD_TESTS
75 TESTS_ENVIRONMENT = \
76         DOC_MODULE=$(DOC_MODULE) DOC_MAIN_SGML_FILE=$(DOC_MAIN_SGML_FILE) \
77         PATH=$(abs_top_builddir):$(srcdir):$(PATH) \
78         PERL5LIB=$(abs_top_builddir):$(PERL5LIB)
79 endif
81 -include $(top_srcdir)/git.mk