[jamming] Checking variable on a target
dean.ashton at ntlworld.com
Mon Nov 22 02:23:29 PST 2004
Thanks for the response. Unfortunately your suggestion doesn't work for me.
For the first point, inside an action I'm limited to external commands only. 'If', in the context in your example, can't work as you describe. $(NEEDLIBS) has already been expanded, causing the call to DOS 'if' to fail. Also, having to have the 'if' and the command on a single line tends to screw up the redirect to my linker response file..
For your second point, I can't put all the linking flags into one action as we have large link command lines (both NEEDLIBS and LINKLIBS can get quite large). The 'piecemeal' command only splits $(>) up, so it doesn't help us when dealing with NEEDLIBS and LINKLIBS in a single action. Indeed, this is why I have a split set of actions as in my original post..
> From: "Alen Ladavac" <alenl-ml at croteam.com>
> Date: 2004/11/22 Mon AM 11:04:14 GMT
> To: <jamming at perforce.com>
> Subject: Re: [jamming] Checking variable on a target
> Erm, how about, this?
> if not $(LINKLIBS)=="" echo $(LINKLIBS) >> $(<:S=.rsp)
> It's not a jam-side solution, but it should fix the problem.
> On the other hand, why not put all linking flags into one action? Then the
> problem would not exist, as long as there is at least one flag (which is
> usually true).
Email provided by http://www.ntlhome.com/
More information about the jamming