Commit c07c52fc authored by Ralf Jung's avatar Ralf Jung

Use mktemp instead of tempfile

mktemp seems to also be available on macOS -- though without `--suffix`.
parent 3bed085d
......@@ -10,7 +10,7 @@ test: $(TESTFILES:.v=.vo)
$(TESTFILES:.v=.vo): %.vo: %.v $(VFILES:.v=.vo)
$(SHOW)COQC [test] $<
$(HIDE)TEST="$$(basename -s .v $<)" && \
TMPFILE="$$(tempfile -p test- -s "-$$TEST")" && \
TMPFILE="$$(mktemp)" && \
$(TIMER) $(COQC) $(COQDEBUG) $(TIMING_ARG) $(COQFLAGS) $(COQLIBS) $< $(TIMING_EXTRA) > "$$TMPFILE" && \
(diff --color=auto -u "tests/$$TEST.ref" "$$TMPFILE" || (rm "tests/$$TEST.vo" "$$TMPFILE" && exit 1)) && \
rm "$$TMPFILE"
......
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