diff --git a/Makefile.am b/Makefile.am index 00c1025..e0698ad 100644 --- a/Makefile.am +++ b/Makefile.am @@ -20,3 +20,13 @@ pkgconfigdir = $(libdir)/pkgconfig pkgconfig_DATA = exactness.pc ACLOCAL_AMFLAGS = -I m4 + +if HAVE_EXACTNESS_DATA + +check-exactness: + $(eval JOBS := $(shell [[ "${MAKEFLAGS}" =~ -j([0-9]+) ]] && echo $${BASH_REMATCH[1]} || echo 1)) + cd exactness-elm-data/default-profile; exactness -j ${JOBS} -p -b recordings tests.txt; cd - + +.PHONY: check-exactness + +endif diff --git a/configure.ac b/configure.ac index cc4549d..fbbbe5b 100644 --- a/configure.ac +++ b/configure.ac @@ -68,3 +68,7 @@ src/bin/Makefile src/lib/Makefile exactness.pc ]) + +exactness_data_dir=${srcdir}/exactness-elm-data/default-profile +AC_CHECK_FILE([$exactness_data_dir], [have_exactness_data="yes"], [have_exactness_data="no"]) +AM_CONDITIONAL([HAVE_EXACTNESS_DATA], [test "x${have_exactness_data}" = "xyes"])