On Wed, 2010-09-22 at 15:12 +0330, ali hagigat wrote:
> > Make does not go through the recipes, etc. and replace "target1" with
> > "/foo/bar/baz/target1".
> 
> Thank you Paul for the explanations. So Make does not go through the
> recipes, etc. and replace "target1" with "/foo/bar/baz/target1" but $<
> will be replaced with /foo/bar/baz/target1?!!

Exactly.

> $< is not used inside a recipe? So Make goes through the recipes! 

You cannot read just one half of my sentence and ignore the other half.
I did not say make does not go through the recipes, full stop.
Certainly make goes through recipes, to expand variable references.

I said it doesn't go through the recipes _AND_ replace "target1" with
"/foo/bar/baz/target1".  Together, these two statements are not true.

-- 
-------------------------------------------------------------------------------
 Paul D. Smith <[email protected]>          Find some GNU make tips at:
 http://www.gnu.org                      http://make.mad-scientist.net
 "Please remain calm...I may be mad, but I am a professional." --Mad Scientist


_______________________________________________
Help-make mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-make

Reply via email to