1# $OpenBSD: Makefile,v 1.10 2007/10/05 16:58:21 otto Exp $ 2 3BC=bc 4 5REGRESS_TARGETS=t1 t2 t3 t4 t5 t6 t7 t8 t9 t10 t11 t12 t13 t14 t15 t16 t17 t18 6 7# .in: input file 8# .out: desired result 9 10# t1: bc.library 11# t2: while loop 12# t3: for loop 13# t4: deeply nested while loop 14# t5: function definition and call 15# t6: empty if statement 16# t7: assignment ops 17# t8: continue ops 18# t9: more continue 19# t10: for with empty E's 20# t11: if else 21# t12: print 22# t13: alternive forms of define and return 23# t14: compare 24# t15: boolean and 25# t16: boolean or 26# t17: long var names 27# t18: towers of hanoi 28 29all: clean 30 31.SUFFIXES: .in 32 33.in: 34 @echo ${*} 35 @${BC} -d < ${.CURDIR}/${*}.in > ${*}.log 36 @cmp -s ${.CURDIR}/${*}.out ${*}.log || \ 37 (echo "XXX ${*} failed" && false) 38 39# Clean all files generated 40clean: 41 rm -f *.log 42 43.include <bsd.regress.mk> 44