Makefile (98461) | Makefile (100794) |
---|---|
1# $FreeBSD: head/tools/build/make_check/Makefile 98461 2002-06-20 03:08:20Z jmallett $ | 1# $FreeBSD: head/tools/build/make_check/Makefile 100794 2002-07-28 03:57:08Z jmallett $ |
2 3# Test for broken LHS expansion. 4# This *must* case make(1) to detect a recursive variable, and fail as such. 5.if make(lhs_expn) 6FOO= ${BAR} 7BAR${NIL}= ${FOO} 8FOO${BAR}= ${FOO} 9.endif --- 18 unchanged lines hidden (view full) --- 28 @echo "PASS: Test targets detected no regression." 29 @echo "Running test sysvmatch" 30 @${MAKE} sysvmatch || ${MAKE} failure 31 @echo "PASS: Test sysvmatch detected no regression." 32 @echo "Running test lhs_expn" 33 @! ${MAKE} lhs_expn && true || ${MAKE} failure 34 @echo "PASS: Test lhs_expn detected no regression." 35 | 2 3# Test for broken LHS expansion. 4# This *must* case make(1) to detect a recursive variable, and fail as such. 5.if make(lhs_expn) 6FOO= ${BAR} 7BAR${NIL}= ${FOO} 8FOO${BAR}= ${FOO} 9.endif --- 18 unchanged lines hidden (view full) --- 28 @echo "PASS: Test targets detected no regression." 29 @echo "Running test sysvmatch" 30 @${MAKE} sysvmatch || ${MAKE} failure 31 @echo "PASS: Test sysvmatch detected no regression." 32 @echo "Running test lhs_expn" 33 @! ${MAKE} lhs_expn && true || ${MAKE} failure 34 @echo "PASS: Test lhs_expn detected no regression." 35 |
36# Doubly-defined targets. NetBSD make(1) will warn, ours will silently use the 37# ``right'' one. | 36# Doubly-defined targets. make(1) will warn, but use the "right" one. If it 37# switches to using the "non-right" one, it breaks things worse than a little 38# regression test. |
38double: 39 @true 40 41double: 42 @false 43 44# Some versions of FreeBSD make(1) do not handle a nil LHS in sysvsubst. 45sysvmatch: --- 12 unchanged lines hidden --- | 39double: 40 @true 41 42double: 43 @false 44 45# Some versions of FreeBSD make(1) do not handle a nil LHS in sysvsubst. 46sysvmatch: --- 12 unchanged lines hidden --- |