Grrr, make the test for embedded variables in the left-hand-side actually do

the right thing in every case.  Yuck.
This commit is contained in:
jmallett 2002-06-20 03:08:20 +00:00
parent b4762c84fb
commit ed011dddc1
2 changed files with 4 additions and 4 deletions

View File

@ -30,7 +30,7 @@ all:
@${MAKE} sysvmatch || ${MAKE} failure
@echo "PASS: Test sysvmatch detected no regression."
@echo "Running test lhs_expn"
@${MAKE} lhs_expn || ${MAKE} failure
@! ${MAKE} lhs_expn && true || ${MAKE} failure
@echo "PASS: Test lhs_expn detected no regression."
# Doubly-defined targets. NetBSD make(1) will warn, ours will silently use the
@ -50,7 +50,7 @@ sysvmatch:
# program has not errored out because of the recursion caused by not expanding
# the left-hand-side's embedded variables above.
lhs_expn:
@false
@true
failure:
@echo "FAIL: Test failed: regression detected. See above."

View File

@ -30,7 +30,7 @@ all:
@${MAKE} sysvmatch || ${MAKE} failure
@echo "PASS: Test sysvmatch detected no regression."
@echo "Running test lhs_expn"
@${MAKE} lhs_expn || ${MAKE} failure
@! ${MAKE} lhs_expn && true || ${MAKE} failure
@echo "PASS: Test lhs_expn detected no regression."
# Doubly-defined targets. NetBSD make(1) will warn, ours will silently use the
@ -50,7 +50,7 @@ sysvmatch:
# program has not errored out because of the recursion caused by not expanding
# the left-hand-side's embedded variables above.
lhs_expn:
@false
@true
failure:
@echo "FAIL: Test failed: regression detected. See above."