aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Nieder <jrnieder@gmail.com>2012-07-06 23:42:11 -0500
committerJunio C Hamano <gitster@pobox.com>2012-07-09 08:56:37 -0700
commit33ddbcb01208f93c20ac4b904ad3d76777144882 (patch)
treecf5d0e8e426b0ab30c8d8a89bf962cd33c0eab65
parent620c293abdc36f3db18edd61a622eae30f01ce8e (diff)
downloadgit-33ddbcb01208f93c20ac4b904ad3d76777144882.tar.gz
git-33ddbcb01208f93c20ac4b904ad3d76777144882.tar.xz
Makefile: be silent when only GIT_USER_AGENT changes
To avoid noise during builds, unlike the GIT-CFLAGS rule which prints "* new build flags or prefix" so the operator knows why all files are being rebuilt when it changes, GIT-USER-AGENT generation is silent. If this code breaks and a target depending on GIT-USER-AGENT ends up being rebuilt when it shouldn't be, the full dependency chain can be retrieved with "make --debug=b". Signed-off-by: Jonathan Nieder <jrnieder@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
-rw-r--r--Makefile1
1 files changed, 0 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 2037caa61..aa0e4bbb0 100644
--- a/Makefile
+++ b/Makefile
@@ -1924,7 +1924,6 @@ GIT_USER_AGENT_CQ = "$(subst ",\",$(subst \,\\,$(GIT_USER_AGENT)))"
GIT_USER_AGENT_CQ_SQ = $(subst ','\'',$(GIT_USER_AGENT_CQ))
GIT-USER-AGENT: FORCE
@if test x'$(GIT_USER_AGENT_SQ)' != x"`cat GIT-USER-AGENT 2>/dev/null`"; then \
- echo >&2 " * new user-agent flag"; \
echo '$(GIT_USER_AGENT_SQ)' >GIT-USER-AGENT; \
fi