+ cat jonesforth.f $(PROG) - | ./jonesforth
+
+clean:
+ rm -f jonesforth *~ core .test_*
+
+TESTS := $(patsubst %.f,%.test,$(wildcard test_*.f))
+
+test check: $(TESTS)
+
+test_%.test: test_%.f jonesforth
+ @echo -n "$< ... "
+ @rm -f .$@
+ @cat <(echo ': TEST-MODE ;') jonesforth.f $< <(echo 'TEST') | \
+ ./jonesforth 2>&1 | \
+ sed 's/DSP=[0-9]*//g' > .$@
+ @diff -u .$@ $<.out
+ @rm -f .$@
+ @echo "ok"
+
+.SUFFIXES: .f .test
+.PHONY: test check