How to echo out shell var inside make in B20

Truong, Ton H ttruong@cp10.es.xerox.com
Sun Jan 31 23:52:00 GMT 1999


Title: How to echo out shell var inside make in B20





I just downloaded the B20.1 version and run into this problem which we did not have using B18.


Our makefile defines this variable
LIB=ttdr


Say I have this target:
unittestdebug:
     echo $$LIB


With the double dollar sign, I would expect the echo command to echo out the VC++ LIB environment variable (c:/msdev/VC/lib; etc...), but it echoes out the value "ttdr" - the Makefile variable instead.

Does anyone have a workaround for it?


Please respond to me, as I am not a subscriber to the list.


//Ton Truong






More information about the Cygwin mailing list