mkhtml2: if linkend does not resolve output inner data
[gtk-doc.git] / tests / Makefile.am
blob917284451a26c6fe1b32d7cde8824aac82de156e
1 ## Process this file with automake to produce Makefile.in
3 # we need to run '.' last so that sanity processes the generated docs
4 # maybe move it to a subdir?
5 SUBDIRS = annotations bugs empty fail gobject program repro .
7 if BUILD_TESTS
9 TESTS = \
10   check.py common.py mk_to_db.py mkhtml2.py \
11   tools.sh gobject.sh bugs.sh annotations.sh fail.sh empty.sh sanity.sh \
12   program.sh
13 TESTS_ENVIRONMENT = \
14         BUILDDIR=$(abs_builddir) \
15         SRCDIR=$(abs_srcdir) \
16         ABS_TOP_BUILDDIR=$(abs_top_builddir) \
17         ABS_TOP_SRCDIR=$(abs_top_srcdir) \
18         PATH=$(abs_top_builddir):$(srcdir):$(PATH) \
19         PYTHONPATH=$(abs_top_builddir):$(abs_top_srcdir):$(PYTHONPATH) \
20         GLIB_PREFIX="$(glib_prefix)"
21 TEST_EXTENSIONS = .py
22 PY_LOG_COMPILER = $(PYTHON)
23 endif
25 EXTRA_DIST = gtkdoctest.sh $(TESTS)
27 # run any given test by running make <test>.check
28 %.check: %
29         @$(TESTS_ENVIRONMENT)   \
30         ./$*
32 snapshot:
33         @for dir in $(SUBDIRS); do \
34     rm -rf $$dir/docs/html.ref; \
35           if test -d $$dir/docs/html; then \
36       cp -r $$dir/docs/html $$dir/docs/html.ref; \
37     fi; \
38     rm -rf $$dir/docs/xml.ref; \
39           if test -d $$dir/docs/xml; then \
40       cp -r $$dir/docs/xml $$dir/docs/xml.ref; \
41     fi; \
42         done
44 .PHONY: snapshot
46 -include $(top_srcdir)/git.mk