Makefile revision 95538
1# $FreeBSD: head/tools/build/make_check/Makefile 95538 2002-04-27 02:26:23Z jmallett $
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 "PASS: Test variables detected no regression, output matches."
17	@echo "Running test targets"
18	@${MAKE} double || ${MAKE} failure
19	@echo "PASS: Test targets detected no regression."
20
21# Doubly-defined targets.  NetBSD make(1) will warn, ours will silently use the
22# ``right'' one.
23double:
24	@true
25
26double:
27	@false
28
29failure:
30	@echo "FAIL: Test failed: regression detected.  See above."
31	@false
32