From ba831a2cb765cac55a1875eb11a8c6e071844c80 Mon Sep 17 00:00:00 2001 From: Bryan Drewery Date: Thu, 15 Oct 2015 05:32:56 +0000 Subject: [PATCH] Consider top-level targets to be .PHONY as bmake won't build them otherwise if a file with the same name is found in the directory. MFC after: 1 week Sponsored by: EMC / Isilon Storage Division --- Makefile | 2 +- Makefile.inc1 | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index a86df3b67236..aa9c05736ebb 100644 --- a/Makefile +++ b/Makefile @@ -250,7 +250,7 @@ ${TGTS}: .MAKE tinderbox toolchains kernel-toolchains: .MAKE .endif -${TGTS}: +${TGTS}: .PHONY ${_+_}@cd ${.CURDIR}; ${_MAKE} ${.TARGET} # The historic default "all" target creates files which may cause stale diff --git a/Makefile.inc1 b/Makefile.inc1 index 4e6a873887ce..1cdefc948cd9 100644 --- a/Makefile.inc1 +++ b/Makefile.inc1 @@ -1062,7 +1062,7 @@ INSTALLKERNEL= ${_kernel} .endif .endfor -buildkernel ${WMAKE_TGTS:N_worldtmp} ${.ALLTARGETS:M_*:N_worldtmp}: .MAKE +buildkernel ${WMAKE_TGTS:N_worldtmp} ${.ALLTARGETS:M_*:N_worldtmp}: .MAKE .PHONY # # buildkernel