# Last edited on 2008-06-10 20:41:44 by stolfi PROG := TestWalks PROGDIR := ../../cur/progs-main TESTS := \ cube \ pentagon all: for t in ${TESTS} ; do \ ${MAKE} TESTARGS=$$t single ; \ done # ---------------------------------------------------------------------- # Single test secction; caller must define ${TESTARGS} TESTARGS := TESTARGS.IS.UNDEFINED ifneq "/${TESTARGS}" "/TESTARGS.IS.UNDEFINED" TESTFIELDS := ${subst :, ,${TESTARGS}} IN_NAME := ${word 1,${TESTFIELDS}} single: ${PROGDIR}/${PROG} ${PROGDIR}/${PROG} -input ${IN_NAME} endif # ---------------------------------------------------------------------- # Recompile the program if suspected change: ${PROGDIR}/${PROG}: ${PROGDIR} ${PROGDIR}/../liboct cd ${PROGDIR} && make ${PROG}