tests: put some Makefile.am vars to test environment for gtkdoc-check
[gtk-doc.git] / tests / Makefile.am
blob63162e7981a34cf731af549c382203d4ef024165
1 ## Process this file with automake to produce Makefile.in
3 SUBDIRS = gobject bugs annotations fail empty .
5 if BUILD_TESTS
7 TESTS = tools.sh gobject.sh bugs.sh annotations.sh fail.sh empty.sh sanity.sh
8 TESTS_ENVIRONMENT = \
9         ABS_TOP_BUILDDIR=$(abs_top_builddir) \
10         ABS_TOP_SRCDIR=$(abs_top_srcdir) \
11         PATH=$(abs_top_builddir):$(srcdir):$(PATH) \
12         PERL5LIB=$(abs_top_builddir):$(PERL5LIB)
14 endif
16 EXTRA_DIST = gtkdoctest.sh tools.sh \
17         gobject.sh bugs.sh annotations.sh fail.sh empty.sh sanity.sh
19 # run any given test by running make <test>.check
20 %.check: %
21         @$(TESTS_ENVIRONMENT)   \
22         ./$*
25 -include $(top_srcdir)/git.mk