This doesn't quite work, because you can't have variables in the right 
hand side of a nmake substitution (making it almost useless!)

However, with a little hacking, I have a new solution which involes 
outputing a line to a temp file, !include'ing the temp file, and 
bringing it back in. No more perl! :)

Thanks for getting me started, Bruce!

                Alec

Bruce Robson wrote:

> Bruce Robson wrote:
> 
>>Alec Flett wrote:
>>
>>>If anyone has any ideas about doing this string transformation in nmake,
>>>let me know.
>>>
>>>the equivalent in gmake is:
>>>$(foreach d,$(REQUIRES),-I$(DIST)/include/$d)
>>>
>>>Alec
>>>
>>
>>I've never used this feature, but does
>>    -I$$(DIST)/include/$(REQUIRES: = $$(DIST)/include/)
>>produce what you want ?
>>
> 
> oops! I meant
>     -I$$(DIST)/include/$(REQUIRES: = -I$$(DIST)/include/)
> 


Reply via email to