From 071f080ab938648063db1e3c9e0b4d01e9621b1f Mon Sep 17 00:00:00 2001 From: Ian Lynagh Date: Tue, 15 Dec 2009 13:40:33 +0000 Subject: [PATCH] Make addCFileDeps quieter Move a comment out of the definition, so it doesn't get printed as a shell command every time we call the definition --- rules/build-dependencies.mk | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/rules/build-dependencies.mk b/rules/build-dependencies.mk index a2bae25..d6cf33e 100644 --- a/rules/build-dependencies.mk +++ b/rules/build-dependencies.mk @@ -72,8 +72,9 @@ endif endef -define addCFileDeps - +# This comment is outside the "define addCFileDeps" as that definition +# is a list of command lines, and if it is inside it then we pass this +# comment to the shell every time we call the definition. # $1 = dir # $2 = distdir # $3 = depfile @@ -81,6 +82,8 @@ define addCFileDeps # $5 = way # The formatting of this definition (e.g. the blank line above) is # important, in order to get make to generate the right makefile code. +define addCFileDeps + $(CPP) $($1_$2_MKDEPENDC_OPTS) $($1_$2_$5_ALL_CC_OPTS) $($(basename $4)_CC_OPTS) -MM $4 -MF $3.bit sed -e "1s|\.o|\.$($5_osuf)|" -e "1s|^|$(dir $4)|" -e "1s|$1/|$1/$2/build/|" -e "s|$(TOP)/||g" -e "s|$2/build/$2/build|$2/build|g" $3.bit >> $3.tmp endef -- 1.7.10.4