sugar-toolkit-gtk3/Makefile.am
Daniel Narvaez 5db54b25a2 Ensure we cleanup the tmp dir
Even if the tests fails.
2013-06-10 15:46:53 +02:00

30 lines
616 B
Makefile

ACLOCAL_AMFLAGS = -I m4
DISTCHECK_CONFIGURE_FLAGS = --enable-introspection
TESTS_TMPDIR=$(abs_builddir)/tests-tmp
TESTS_PYTHONPATH=$(abs_srcdir)/src:$(PYTHONPATH)
DISTCLEANFILES = \
intltool-extract \
intltool-merge \
intltool-update
EXTRA_DIST = \
intltool-merge.in \
intltool-update.in \
intltool-extract.in
SUBDIRS = bin src po
check: test
pyflakes $(top_srcdir)
test:
mkdir -p $(TESTS_TMPDIR)
cd $(top_srcdir)/tests; \
TMPDIR=$(TESTS_TMPDIR) PYTHONPATH=$(TESTS_PYTHONPATH) \
python -m unittest discover; \
status=$$?; \
rm -rf $(TESTS_TMPDIR); \
exit $$status