summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXavier Leroy <xavier.leroy@inria.fr>1995-06-18 14:46:16 +0000
committerXavier Leroy <xavier.leroy@inria.fr>1995-06-18 14:46:16 +0000
commit567dd7dbdf895bf703a4985d16996ca8cef002db (patch)
tree3cc36058aa9d5cc6cc7e1dad90d612564214a533
parent101bb8b8a786bdfdeb44cdc8390b1f8fc18883cd (diff)
Ajout d'une variable $(CAMLRUN).
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@42 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
-rw-r--r--test/Makefile9
1 files changed, 6 insertions, 3 deletions
diff --git a/test/Makefile b/test/Makefile
index b22d545f8..72c4a7718 100644
--- a/test/Makefile
+++ b/test/Makefile
@@ -2,6 +2,7 @@ CAMLC=../boot/camlrun ../camlc -I ../stdlib
CAMLYACC=../yacc/camlyacc
CAMLLEX=../boot/camlrun ../lex/camllex
CAMLDEP=../tools/camldep
+CAMLRUN=../byterun/camlrun
EXE=fib takc taku sieve quicksort quicksort.fast fft fft.fast \
soli soli.fast boyer kb nucleic genlex
@@ -32,13 +33,13 @@ clean::
rm -f Lex/*.cm[io]
rm -f Lex/*~
-Lex/grammar.ml Lex/grammar.mli: Lex/grammar.mly $(CAMLYACC)
+Lex/grammar.ml Lex/grammar.mli: Lex/grammar.mly
$(CAMLYACC) $(YACCFLAGS) Lex/grammar.mly
clean::
rm -f Lex/grammar.ml Lex/grammar.mli
-Lex/scanner.ml: Lex/scanner.mll $(CAMLLEX)
+Lex/scanner.ml: Lex/scanner.mll
$(CAMLLEX) Lex/scanner.mll
clean::
@@ -71,6 +72,7 @@ clean::
test:
set -e; \
+ camlrun=$(CAMLRUN); export camlrun; \
for prog in $(EXE); do \
echo $$prog; \
if test -f Results/$$prog.runtest; then \
@@ -87,11 +89,12 @@ clean::
bench:
set -e; \
+ camlrun=$(CAMLRUN); export camlrun; \
for prog in $(EXE); do \
echo $$prog; \
if test -f Results/$$prog.runtest; then \
sh Results/$$prog.runtest bench; \
else \
- xtime -o /dev/null ../byterun/camlrun $$prog; \
+ xtime -o /dev/null $(CAMLRUN) $$prog; \
fi; \
done