DIRECTORY=c perl python java .PHONY : runcheck clean runcheck: $(DIRECTORY) clean: @for i in $(DIRECTORY); do \ here=`pwd`; \ cd $$i; \ printf "\n ==> CLEANING on %s\n" "$$i"; \ make -s clean; \ cd $$here; \ done @rm -rf allout.tmp runcheck: @echo 'running libabac SCRIPT testing...' @for i in $(DIRECTORY); do \ here=`pwd`; \ cd $$i; \ printf "\n ==> RUN on %s\n" "$$i" >> ../allout.tmp ; \ ./run_test 1 >> ../allout.tmp 2>& 1; \ cd $$here; \ done @if test -f allout.tmp && test `diff -q allout.save allout.tmp |wc -l ` -eq 0 ; \ then echo " PASSED"; \ else echo " ERROR:got changes!!!"; \ fi