git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH] Allow "make -w" generate its usual output

From
Alex Riesen <raa.lkml@gmail.com>
Date
Mar 6, 2007, 23:15 UTC
Message-ID
<81b0412b0703061515x44e5c4fcr496b3c90981764a5@mail.gmail.com>
Signed-off-by: Alex Riesen <raa.lkml@gmail.com>
---
 Makefile |   10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)
From a69e11755ce1b49797e100326a1783fd5d22ece5 Mon Sep 17 00:00:00 2001
From: Alex Riesen <raa.lkml@gmail.com>
Date: Wed, 7 Mar 2007 00:05:34 +0100
Subject: [PATCH] Allow "make -w" generate its usual output
Signed-off-by: Alex Riesen <raa.lkml@gmail.com>
---
 Makefile |   10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/Makefile b/Makefile
index 983da60..bab7565 100644
--- a/Makefile
+++ b/Makefile
@@ -608,6 +608,12 @@ endif
 QUIET_SUBDIR0  = $(MAKE) -C # space to separate -C and subdir
 QUIET_SUBDIR1  =
 
+ifneq ($(findstring $(MAKEFLAGS),w),w)
+PRINT_DIR = --no-print-directory
+else # "make -w"
+NO_SUBDIR = :
+endif
+
 ifneq ($(findstring $(MAKEFLAGS),s),s)
 ifndef V
 	QUIET_CC       = @echo '   ' CC $@;
@@ -616,8 +622,8 @@ ifndef V
 	QUIET_BUILT_IN = @echo '   ' BUILTIN $@;
 	QUIET_GEN      = @echo '   ' GEN $@;
 	QUIET_SUBDIR0  = @subdir=
-	QUIET_SUBDIR1  = ;echo '   ' SUBDIR $$subdir; \
-			 $(MAKE) --no-print-directory -C $$subdir
+	QUIET_SUBDIR1  = ;$(NO_SUBDIR) echo '   ' SUBDIR $$subdir; \
+			 $(MAKE) $(PRINT_DIR) -C $$subdir
 	export V
 	export QUIET_GEN
 	export QUIET_BUILT_IN
-- 
1.5.0.3.410.gca42
Message 1 of 1 in “Allow "make -w" generate its usual output”
  1. Allow "make -w" generate its usual outputAlex Riesen, Mar 6, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.