# Ignore lines with timestamps of the form hh:mm, since the time changes between
# runs. This regex is fairly broad and it may need to be narrowed.
$(TESTS:=.diff): %.diff: %.out
diff -I "[0-9][0-9]:[0-9][0-9]" -u $(@:.diff=.ref) $(@:.diff=.out)
clean:
rm -rf *.out
# The reference copies should only be built at the start, or when the behaviour
# of Asymptote is intentionally changed, so they are not usually removed by make
# clean.
veryclean: clean
rm -rf *.ref
# This tells make to build every dependency from scratch, ignoring the dates on
# files.
PHONY: $(TESTS:=.ref) $(TESTS:=.out) $(TESTS:=.diff) diff ref clean veryclean