Commit 64a8726f authored by Thomas Jahns's avatar Thomas Jahns 🤸

Allow benchmarks in VPATH builds.

* Also check for errors in benchmark script.
parent dd429c7e
......@@ -17,7 +17,7 @@ LDADD = libcheck_aec.la $(top_builddir)/src/libaec.la
EXTRA_DIST = sampledata.sh benc.sh bdec.sh
bench: benc bdec
benc:
./benc.sh
$(srcdir)/benc.sh
bdec:
./bdec.sh
$(srcdir)/bdec.sh
.PHONY: bench benc bdec
......@@ -4,7 +4,8 @@ AEC=../src/aec
if [ ! -f bench.rz ]; then
echo "No encoded file found. Encoding now..."
./benc.sh
path=$(echo $0 | sed -e 's:[^/]*$::')
"${path}"/benc.sh
fi
rm -f dec.dat
bsize=$(stat -c "%s" bench.dat)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment