mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-12 09:58:36 +00:00
Hide the test in <target> under '.if make(<target>)' so as to not get any
errors/warnings related to crud in said test block.
This commit is contained in:
parent
e6f737b346
commit
5661d4a7b9
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=105907
@ -33,6 +33,7 @@ all:
|
||||
@! ${MAKE} lhs_expn && true || ${MAKE} failure
|
||||
@echo "PASS: Test lhs_expn detected no regression."
|
||||
|
||||
.if make(double)
|
||||
# Doubly-defined targets. make(1) will warn, but use the "right" one. If it
|
||||
# switches to using the "non-right" one, it breaks things worse than a little
|
||||
# regression test.
|
||||
@ -41,11 +42,14 @@ double:
|
||||
|
||||
double:
|
||||
@false
|
||||
.endif
|
||||
|
||||
.if make(sysvmatch)
|
||||
# Some versions of FreeBSD make(1) do not handle a nil LHS in sysvsubst.
|
||||
sysvmatch:
|
||||
@echo EMPTY ${NIL:=foo} LHS | \
|
||||
diff -u ${.CURDIR}/regress.sysvmatch.out - || false
|
||||
.endif
|
||||
|
||||
# A bogus target for the lhs_expn test; If this is reached, then the make(1)
|
||||
# program has not errored out because of the recursion caused by not expanding
|
||||
|
@ -33,6 +33,7 @@ all:
|
||||
@! ${MAKE} lhs_expn && true || ${MAKE} failure
|
||||
@echo "PASS: Test lhs_expn detected no regression."
|
||||
|
||||
.if make(double)
|
||||
# Doubly-defined targets. make(1) will warn, but use the "right" one. If it
|
||||
# switches to using the "non-right" one, it breaks things worse than a little
|
||||
# regression test.
|
||||
@ -41,11 +42,14 @@ double:
|
||||
|
||||
double:
|
||||
@false
|
||||
.endif
|
||||
|
||||
.if make(sysvmatch)
|
||||
# Some versions of FreeBSD make(1) do not handle a nil LHS in sysvsubst.
|
||||
sysvmatch:
|
||||
@echo EMPTY ${NIL:=foo} LHS | \
|
||||
diff -u ${.CURDIR}/regress.sysvmatch.out - || false
|
||||
.endif
|
||||
|
||||
# A bogus target for the lhs_expn test; If this is reached, then the make(1)
|
||||
# program has not errored out because of the recursion caused by not expanding
|
||||
|
Loading…
Reference in New Issue
Block a user