1# $FreeBSD$ 2 3DATA1= helllo 4DATA2:= ${DATA1} 5DATA3= ${DATA2:S/ll/rr/g} 6DATA4:= ${DATA2:S/ll/rr/g} 7DATA2?= allo 8DATA5:= ${DATA2:S/ll/ii/g} ${DATA1:S/ll/rr/g} 9DATA2= yello 10DATA1:= ${DATA5:S/l/r/g} 11 12all: 13 @echo "Running test variables" 14 @echo 1:${DATA1} 2:${DATA2} 3:${DATA3} 4:${DATA4} 5:${DATA5} | \ 15 diff -u ${.CURDIR}/regress.variables.out - || ${MAKE} failure 16 @echo "Test variables detected no regression, output matches." 17 18failure: 19 @echo "Test failed: regression detected. See above." 20 @false 21