|
From: | David Boyce |
Subject: | RE: how to filter-out a word sequence? |
Date: | Fri, 05 Jan 2007 12:07:53 -0500 |
At 11:12 AM 1/5/2007, Dave Korn wrote:
And indeed, judicious use of $(strip ....) to normalise/canonicalise the whitespace in a variable can get round that anyway, which is helpful if you want to allow users to supply manual overrides in environment variables (or make variables set on the command-line invocation), since anything entered manually might well have a stray space or two in it.
Even more important in our case since these Makefiles need to support clearmake (in its GNU-compatible mode). Since clearmake compares build scripts in addition to file versions, any stray spaces can cause a spurious rebuild. This is where $(strip) is extremely handy.
-David Boyce
[Prev in Thread] | Current Thread | [Next in Thread] |