make: ignore pycache dirs
[gtk-doc.git] / tests / Makefile.am
blob794db9417a6d7f06ad81183654cd2359ac7d93d8
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   check.py common.py mk_to_db.py \
9   tools.sh gobject.sh bugs.sh annotations.sh fail.sh empty.sh sanity.sh \
10   program.sh
11 TESTS_ENVIRONMENT = \
12         BUILDDIR=$(abs_builddir) \
13         SRCDIR=$(abs_srcdir) \
14         ABS_TOP_BUILDDIR=$(abs_top_builddir) \
15         ABS_TOP_SRCDIR=$(abs_top_srcdir) \
16         PATH=$(abs_top_builddir):$(srcdir):$(PATH) \
17         PERL5LIB=$(abs_top_builddir):$(PERL5LIB) \
18         PYTHONPATH=$(abs_top_builddir):${PYTHONPATH} \
19         GLIB_PREFIX="$(glib_prefix)"
21 endif
23 EXTRA_DIST = gtkdoctest.sh $(TESTS)
25 # run any given test by running make <test>.check
26 %.check: %
27         @$(TESTS_ENVIRONMENT)   \
28         ./$*
30 snapshot:
31         @for dir in $(SUBDIRS); do \
32     rm -rf $$dir/docs/html.ref; \
33           if test -d $$dir/docs/html; then \
34       cp -r $$dir/docs/html $$dir/docs/html.ref; \
35     fi; \
36     rm -rf $$dir/docs/xml.ref; \
37           if test -d $$dir/docs/xml; then \
38       cp -r $$dir/docs/xml $$dir/docs/xml.ref; \
39     fi; \
40         done
42 .PHONY: snapshot
44 -include $(top_srcdir)/git.mk