Mercurial > ~dholland > hg > tradcpp > index.cgi
view tests/Makefile @ 49:8a204d153398
Intercept multiline comments earlier. Leave same-line comments alone.
Fixes all of the pathological comment behavior we've noticed so far.
author | David A. Holland |
---|---|
date | Sun, 31 Mar 2013 01:04:43 -0400 |
parents | 0af03c5571e0 |
children | a52f0229f22b 737ffe27b4bd |
line wrap: on
line source
TRADCPP=../obj/tradcpp # XXX TESTS=t01 t02 t03 t04 t05 t06 t07 t08 t09 t10 t11 t12 t13 t14 t15 all: run-tests .WAIT show-diffs .for T in $(TESTS) run-tests: $(T).diff $(T).diff: $(T).run $(T).good $(TRADCPP) -diff -u $(T).good $(T).run > $(T).diff $(T).run: $(TRADCPP) $(T).c $(TRADCPP) $(T).c > $(T).run 2>&1 || echo FAILED >> $(T).run .endfor show-diffs: @echo '*** Test diffs ***' .for T in $(TESTS) @cat $(T).diff .endfor clean: .for T in $(TESTS) rm -f $(T).run $(T).diff .endfor good: .for T in $(TESTS) cp $(T).run $(T).good .endfor .PHONY: all run-tests show-diffs clean good