From fa5e9cbbd7e9894a10f77bc6c6b9f67ade4249b6 Mon Sep 17 00:00:00 2001 From: Bryan Drewery Date: Tue, 29 Sep 2015 18:57:30 +0000 Subject: [PATCH] Fix the .MAKE added in r251750 to properly support the historical -n -n. The condition used matches the condition in sys.mk for setting _+_ to blank or +. With this -n will continue to not descend into Makefile.inc1, while -n -n will and cause Makefile.inc1's target to run with -n. MFC after: 2 weeks Sponsored by: EMC / Isilon Storage Division --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 7172ac577e0d..ef4d90955ea8 100644 --- a/Makefile +++ b/Makefile @@ -243,9 +243,9 @@ cleanworld: # Handle the user-driven targets, using the source relative mk files. # -.if empty(.MAKEFLAGS:M-n) +.if !(!empty(.MAKEFLAGS:M-n) && ${.MAKEFLAGS:M-n} == "-n") # skip this for -n to avoid changing previous behavior of -# 'make -n buildworld' etc. +# 'make -n buildworld' etc. Using -n -n will run it. ${TGTS}: .MAKE tinderbox toolchains kernel-toolchains: .MAKE .endif