.POSIX: .SUFFIXES: all: lc driver lc: @cd lc; dune build driver: @cd driver; dune build checkall: driver lc @c=1 ; \ for f in tests/*.c; do \ n=$$(driver/_build/install/default/bin/driver $$f &> /dev/null || echo -n "not " && echo "ok") ; \ echo "$$n $$c - $$f" ; \ c=$$(($$c+1)) ; \ done check: driver lc driver/_build/install/default/bin/driver tests/switch1.c progress: cd writing-a-c-compiler-tests; \ ./test_compiler ../driver/_build/install/default/bin/driver --chapter 8 --bitwise --compound --increment --goto --switch .PHONY: all lc driver check progress