logging: add back support for GTKDOC_TRACE
[gtk-doc.git] / tests / Makefile.am
blobfea2c8813cddae5323400138c323dd0650a1f986
1 ## Process this file with automake to produce Makefile.in
3 SUBDIRS = gobject bugs annotations fail empty program .
5 if BUILD_TESTS
7 TESTS = \
8   gtkdoc-common.t gtkdoc-mkdb.t \
9   gtkdoc-check.py gtkdoc-common.py \
10   tools.sh gobject.sh bugs.sh annotations.sh fail.sh empty.sh sanity.sh \
11   program.sh
12 TESTS_ENVIRONMENT = \
13         BUILDDIR=$(abs_builddir) \
14         SRCDIR=$(abs_srcdir) \
15         ABS_TOP_BUILDDIR=$(abs_top_builddir) \
16         ABS_TOP_SRCDIR=$(abs_top_srcdir) \
17         PATH=$(abs_top_builddir):$(srcdir):$(PATH) \
18         PERL5LIB=$(abs_top_builddir):$(PERL5LIB) \
19         PYTHONPATH=$(abs_top_builddir):${PYTHONPATH} \
20         GLIB_PREFIX="$(glib_prefix)"
22 endif
24 EXTRA_DIST = gtkdoctest.sh tools.sh sanity.sh \
25         gobject.sh bugs.sh annotations.sh fail.sh empty.sh \
26         gtkdoc-common.t gtkdoc-fixxref.t gtkdoc-mkdb.t
29 # run any given test by running make <test>.check
30 %.check: %
31         @$(TESTS_ENVIRONMENT)   \
32         ./$*
34 snapshot:
35         @for dir in $(SUBDIRS); do \
36     rm -rf $$dir/docs/html.ref; \
37           if test -d $$dir/docs/html; then \
38       cp -r $$dir/docs/html $$dir/docs/html.ref; \
39     fi; \
40     rm -rf $$dir/docs/xml.ref; \
41           if test -d $$dir/docs/xml; then \
42       cp -r $$dir/docs/xml $$dir/docs/xml.ref; \
43     fi; \
44         done
46 .PHONY: snapshot
48 -include $(top_srcdir)/git.mk