DIRECTORY=creddy creddy_prover python .PHONY : setup runcheck clean runcheck: $(DIRECTORY) clean: @for i in $(DIRECTORY); do \ here=`pwd`; \ cd $$i; \ printf "\n ==> CLEANING on %s\n" "$$i"; \ rm -rf */*.der */*.pem */pfile */*.tmp; \ rm -rf */*.cn */*.sha */*.log */creds_dump; \ rm -rf *.der *.pem pfile *.tmp; \ cd $$here; \ done @rm -rf allout.tmp @rm -rf ENC_PRIVATE.PEM PFILE setup: @echo "dumdum" > PFILE @openssl genrsa -des3 -out ENC_PRIVATE.PEM -passout file:PFILE 1>/dev/null 2>&1 @for i in $(DIRECTORY); do \ here=`pwd`; \ cd $$i; \ ./setup 1 >/dev/null 2>&1; \ cd $$here; \ done runcheck: @echo 'running libabac PASSPHRASE testing...' @make setup @for i in $(DIRECTORY); do \ here=`pwd`; \ cd $$i; \ printf "\n ==> RUN on %s\n" "$$i" >> ../allout.tmp ; \ ./run_test 1 >> ../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