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

[PATCH 3/3] Makefile: silence perl/PM.stamp recipe

From
Jeff King <peff@peff.net>
Date
May 29, 2015, 07:26 UTC
Message-ID
<20150529072648.GC9670@peff.net>
In-Reply-To
<20150529072119.GA5415@peff.net>

Every time we run "make", we update perl/PM.stamp, which contains a list of all of the perl module files (if it's updated, we need to rebuild perl/perl.mak, since the Makefile will not otherwise know about the new files).

This means that every time "make" is run, we see:
      GEN perl/PM.stamp

in the output, even though it is not likely to have changed. Let's make this recipe completely silent, as we do for other auto-generated dependency files (e.g., GIT-CFLAGS).

Signed-off-by: Jeff King <peff@peff.net>
---
 Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Makefile b/Makefile
index 6b4fbeb..6b0dd47 100644
--- a/Makefile
+++ b/Makefile
@@ -1747,7 +1747,7 @@ $(SCRIPT_PERL_GEN): perl/perl.mak
 perl/perl.mak: perl/PM.stamp
 
 perl/PM.stamp: FORCE
-	$(QUIET_GEN)$(FIND) perl -type f -name '*.pm' | sort >$@+ && \
+	@$(FIND) perl -type f -name '*.pm' | sort >$@+ && \
 	{ cmp $@+ $@ >/dev/null 2>/dev/null || mv $@+ $@; } && \
 	$(RM) $@+
 
-- 
2.4.2.668.gc3b1ade.dirty
Previous: Jeff King
Message 4 of 4 in “fix minor Makefile annoyances”
  1. 0/3 fix minor Makefile annoyancesJeff King, May 29, 2015
  2. 1/3 Makefile: drop dependency between git-instaweb and gitwebJeff King, May 29, 2015
  3. 2/3 Makefile: avoid timestamp updates to GIT-BUILD-OPTIONSJeff King, May 29, 2015
  4. 3/3 Makefile: silence perl/PM.stamp recipeJeff King, May 29, 2015

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.