benchmark.html: benchmark.txt benchmark.pl
./benchmark.pl benchmark.txt > $@
-benchmark.txt: $(GAMES)
- for i in $(GAMES); do \
- for params in $$(env -i ./$(BINPREFIX)$$i --list-presets | cut -f1 -d' '); do \
- env -i ./$(BINPREFIX)$$i --test-solve --time-generation --generate 100 $$params \
- || exit 1; \
- done; \
- done > $@
+benchmark.txt: benchmark.sh $(GAMES)
+ ./benchmark.sh > $@
+
+!end
+!begin am
+test: benchmark.html benchmark.txt
+
+benchmark.html: benchmark.txt benchmark.pl
+ ./benchmark.pl benchmark.txt > $@
+
+benchmark.txt: benchmark.sh $(GAMES)
+ ./benchmark.sh > $@
!end