Commit 5ec00c5b authored by Alexandre Duret-Lutz's avatar Alexandre Duret-Lutz
Browse files

Always build benchmarks

parent 43fafd98
2008-11-21 Alexandre Duret-Lutz <adl@lrde.epita.fr>
* src/benchs/generate_benchs.sh: Declare benchmarks
noinst_PROGRAMS, not EXTRA_PROGRAMS. This way they will be
compiled even when they are not run and we can ensure they are
updated if the interface of the library changes.
* src/benchs/composition/Makefile.bench,
src/benchs/derived_terms/Makefile.bench,
src/benchs/determinization/Makefile.bench,
src/benchs/eps_removal/Makefile.bench,
src/benchs/iterators/Makefile.bench,
src/benchs/minimization_2n/Makefile.bench,
src/benchs/minimization_debruijn/Makefile.bench,
src/benchs/quotient/Makefile.bench: Adjust.
2008-11-21 Alexandre Duret-Lutz <adl@lrde.epita.fr>
 
Add missing bits so that "make benchs" works in iterators/.
......
# composition/Makefile.bench * -*- Makefile -*-
benchs: $(EXTRA_PROGRAMS)
benchs: $(noinst_PROGRAMS)
@echo '==================='; \
echo '|Composition bench|'; \
echo '==================='; \
......
# derived_terms/Makefile.bench * -*- Makefile -*-
benchs: $(EXTRA_PROGRAMS)
benchs: $(noinst_PROGRAMS)
@echo '====================='; \
echo '|Derived Terms bench|'; \
echo '====================='; \
......
# determinization/Makefile.bench * -*- Makefile -*-
EXTRA_PROGRAMS += determinization_bench_fsm
noinst_PROGRAMS += determinization_bench_fsm
determinization_bench_fsm_SOURCES = determinization_bench_fsm.cc
benchs: $(EXTRA_PROGRAMS)
benchs: $(noinst_PROGRAMS)
@echo '======================='; \
echo '|Determinization bench|'; \
echo '======================='; \
......
# eps_removal/Makefile.bench * -*- Makefile -*-
benchs: $(EXTRA_PROGRAMS)
benchs: $(noinst_PROGRAMS)
@echo '==================='; \
echo '|eps_removal bench|'; \
echo '==================='; \
......
......@@ -24,7 +24,7 @@ generate_bench ()
# DO NOT EDIT BY HAND - Generated by $0
#
include \$(top_srcdir)/src/benchs/common/bench.mk
EXTRA_PROGRAMS =
noinst_PROGRAMS =
EOF
for BENCH in $(ls $BENCH_DIR/*_bench.hh 2> /dev/null); do
......@@ -83,7 +83,7 @@ EOF
# Add the bench to the Makefile.am.
cat >> $BENCH_DIR/Makefile.am <<EOF
EXTRA_PROGRAMS += $BENCH_NAME-bench
noinst_PROGRAMS += $BENCH_NAME-bench
$(echo "$BENCH_NAME" | sed 's/-/_/g')_bench_SOURCES = $BENCH_NAME-bench.cc \
$BENCH_HEADER
EOF
......
# composition/Makefile.bench * -*- Makefile -*-
benchs: $(EXTRA_PROGRAMS)
benchs: $(noinst_PROGRAMS)
@echo '================'; \
echo '|iterator bench|'; \
echo '================'; \
......
# minimization_2n/Makefile.bench * -*- Makefile -*-
benchs: $(EXTRA_PROGRAMS)
benchs: $(noinst_PROGRAMS)
@echo '===================================='; \
echo '|Minimization bench - 2^n automaton|'; \
echo '===================================='; \
......
# minimization_debruijn/Makefile.bench * -*- Makefile -*-
benchs: $(EXTRA_PROGRAMS)
benchs: $(noinst_PROGRAMS)
@echo '================================'; \
echo '|Minimization bench - De Bruijn|'; \
echo '================================'; \
......
# minimization_2n/Makefile.bench * -*- Makefile -*-
benchs: $(EXTRA_PROGRAMS)
benchs: $(noinst_PROGRAMS)
@echo '================'; \
echo '|Quotient bench|'; \
echo '================'; \
......
Supports Markdown
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