# # scaling_tests # DIRECTORY=daisychain #haystack PLOT= daisychain/likes_python #haystack/fruit_python SUBDIRS=$(DIRECTORY) .PHONY : runcheck clean-local plot clean all:runcheck local-clean: clean: @for i in $(DIRECTORY); do \ here=`pwd`; \ cd $$i; \ make clean; \ cd $$here; \ done; rm -rf error result rm -rf jpegs runcheck: @echo 'running libabac SCALING testing...' | tee result touch error @for i in $(DIRECTORY); do \ here=`pwd`; \ printf "\n ==> RUN on %s\n" "$$i" >> result; \ cd $$i; \ make -s runcheck | tee -a $$here/result |grep BAD >> $$here/error; \ cd $$here; \ done; @if test -f error ; \ then \ (if test `cat error | wc -l ` -eq 0 ; \ then echo " PASSED"; \ else (echo " ERROR!!!"; cat error;) \ fi) \ else echo " PASSED"; \ fi plot: make clean mkdir jpegs @for i in $(PLOT); do \ here=`pwd`; \ cd $$i; \ make -s plot; \ cd $$here; \ done;