DIRECTORY=daisychain #haystack PLOT= daisychain/likes_python #haystack/fruit_python .PHONY : runcheck clean plot runcheck: $(DIRECTORY) clean: @for i in $(DIRECTORY); do \ here=`pwd`; \ cd $$i; \ make clean; \ cd $$here; \ done; rm -rf allout.tmp rm -rf jpegs runcheck: @echo 'running libabac SCALING testing...' @for i in $(DIRECTORY); do \ here=`pwd`; \ printf "\n ==> RUN on %s\n" "$$i" >> allout.tmp; \ cd $$i; \ make -s runcheck >> ../allout.tmp 2>/dev/null; \ 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 plot: make clean mkdir jpegs @for i in $(PLOT); do \ here=`pwd`; \ cd $$i; \ make -s plot; \ cd $$here; \ done;