Add check-exactness target with -j support
It is still on going. One of the issues is that for some mystic reason, the HAVE_EXACTNESS_DATA seems not checked as the target check-exactness is always present, no matter if the submodule exists.
This commit is contained in:
parent
3ddd87589d
commit
f1bfcaeaf0
10
Makefile.am
10
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
|
||||
|
|
|
@ -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"])
|
||||
|
|
Loading…
Reference in New Issue