diff options
author | Ian Lynagh <igloo@earth.li> | 2009-12-15 13:40:33 +0000 |
---|---|---|
committer | Ian Lynagh <igloo@earth.li> | 2009-12-15 13:40:33 +0000 |
commit | 071f080ab938648063db1e3c9e0b4d01e9621b1f (patch) | |
tree | 9cdc2ace43bb5737f02ebe78ef95597e5f4bf86a /rules/build-dependencies.mk | |
parent | 3a60f713e57c22c7357bec66bfcee6e8ddffee9a (diff) | |
download | haskell-071f080ab938648063db1e3c9e0b4d01e9621b1f.tar.gz |
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
Diffstat (limited to 'rules/build-dependencies.mk')
-rw-r--r-- | rules/build-dependencies.mk | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/rules/build-dependencies.mk b/rules/build-dependencies.mk index a2bae25963..d6cf33ea8a 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 |