{"thread":{"id":"7122","subject":"[PATCH] Allow \"make -w\" generate its usual output","startedAt":"2007-03-06T23:15:18Z","lastAt":"2007-03-06T23:15:18Z","messageCount":1,"participants":["Alex Riesen"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"36494","messageId":"81b0412b0703061515x44e5c4fcr496b3c90981764a5@mail.gmail.com","threadId":"7122","inReplyTo":null,"subject":"[PATCH] Allow \"make -w\" generate its usual output","fromName":"Alex Riesen","fromEmail":"raa.lkml@gmail.com","sentAt":"2007-03-06T23:15:18Z","receivedAt":"2007-03-06T23:15:18Z","isPatch":true,"sender":{"key":"raa.lkml@gmail.com","avatar":"https://avatars.githubusercontent.com/u/324101?v=4"},"body":"Signed-off-by: Alex Riesen <raa.lkml@gmail.com>\n---\n Makefile |   10 ++++++++--\n 1 files changed, 8 insertions(+), 2 deletions(-)\n\n\nFrom a69e11755ce1b49797e100326a1783fd5d22ece5 Mon Sep 17 00:00:00 2001\nFrom: Alex Riesen <raa.lkml@gmail.com>\nDate: Wed, 7 Mar 2007 00:05:34 +0100\nSubject: [PATCH] Allow \"make -w\" generate its usual output\n\nSigned-off-by: Alex Riesen <raa.lkml@gmail.com>\n---\n Makefile |   10 ++++++++--\n 1 files changed, 8 insertions(+), 2 deletions(-)\n\ndiff --git a/Makefile b/Makefile\nindex 983da60..bab7565 100644\n--- a/Makefile\n+++ b/Makefile\n@@ -608,6 +608,12 @@ endif\n QUIET_SUBDIR0  = $(MAKE) -C # space to separate -C and subdir\n QUIET_SUBDIR1  =\n \n+ifneq ($(findstring $(MAKEFLAGS),w),w)\n+PRINT_DIR = --no-print-directory\n+else # \"make -w\"\n+NO_SUBDIR = :\n+endif\n+\n ifneq ($(findstring $(MAKEFLAGS),s),s)\n ifndef V\n \tQUIET_CC       = @echo '   ' CC $@;\n@@ -616,8 +622,8 @@ ifndef V\n \tQUIET_BUILT_IN = @echo '   ' BUILTIN $@;\n \tQUIET_GEN      = @echo '   ' GEN $@;\n \tQUIET_SUBDIR0  = @subdir=\n-\tQUIET_SUBDIR1  = ;echo '   ' SUBDIR $$subdir; \\\n-\t\t\t $(MAKE) --no-print-directory -C $$subdir\n+\tQUIET_SUBDIR1  = ;$(NO_SUBDIR) echo '   ' SUBDIR $$subdir; \\\n+\t\t\t $(MAKE) $(PRINT_DIR) -C $$subdir\n \texport V\n \texport QUIET_GEN\n \texport QUIET_BUILT_IN\n-- \n1.5.0.3.410.gca42\n\n"}]}