diff options
author | jmallett <jmallett@FreeBSD.org> | 2002-04-21 00:41:37 +0000 |
---|---|---|
committer | jmallett <jmallett@FreeBSD.org> | 2002-04-21 00:41:37 +0000 |
commit | a1b2db869234d4a75681404213872402743c3e43 (patch) | |
tree | 9832f81e3cda6b4abb802f399042c714ec5b0708 /tools | |
parent | 4ccd5a907365cac010c7ebb0229b7c9d72122ed9 (diff) | |
download | FreeBSD-src-a1b2db869234d4a75681404213872402743c3e43.zip FreeBSD-src-a1b2db869234d4a75681404213872402743c3e43.tar.gz |
Check to see if make(1)'s handling of doubly-defined targets is busted or
not. A lot relies on this.
Diffstat (limited to 'tools')
-rw-r--r-- | tools/build/make_check/Makefile | 11 | ||||
-rw-r--r-- | tools/regression/usr.bin/make/Makefile | 11 |
2 files changed, 22 insertions, 0 deletions
diff --git a/tools/build/make_check/Makefile b/tools/build/make_check/Makefile index 97ecdb5..9b65f90 100644 --- a/tools/build/make_check/Makefile +++ b/tools/build/make_check/Makefile @@ -14,6 +14,17 @@ all: @echo 1:${DATA1} 2:${DATA2} 3:${DATA3} 4:${DATA4} 5:${DATA5} | \ diff -u ${.CURDIR}/regress.variables.out - || ${MAKE} failure @echo "Test variables detected no regression, output matches." + @echo "Running test targets" + @${MAKE} double || ${MAKE} failure + @echo "Test targets detected no regression." + +# Doubly-defined targets. NetBSD make(1) will warn, ours will silently use the +# ``right'' one. +double: + @true + +double: + @false failure: @echo "Test failed: regression detected. See above." diff --git a/tools/regression/usr.bin/make/Makefile b/tools/regression/usr.bin/make/Makefile index 97ecdb5..9b65f90 100644 --- a/tools/regression/usr.bin/make/Makefile +++ b/tools/regression/usr.bin/make/Makefile @@ -14,6 +14,17 @@ all: @echo 1:${DATA1} 2:${DATA2} 3:${DATA3} 4:${DATA4} 5:${DATA5} | \ diff -u ${.CURDIR}/regress.variables.out - || ${MAKE} failure @echo "Test variables detected no regression, output matches." + @echo "Running test targets" + @${MAKE} double || ${MAKE} failure + @echo "Test targets detected no regression." + +# Doubly-defined targets. NetBSD make(1) will warn, ours will silently use the +# ``right'' one. +double: + @true + +double: + @false failure: @echo "Test failed: regression detected. See above." |