Target specific contents of variables

Lars Ivar Igesund <[email protected]> Thu, 05 Aug 2004 20:03:37 +0100
Newsgroups gmane.comp.tools.aap.devel
Message-ID <[email protected]>
I have a recipe with several programs and a lib. By accident, I found 
out that if I wanted to set DEBUG for only one of the programs, I had to 
set it for both the program name and the file, like this:

:program foo { var_DEBUG = yes } : foo.d { var_DEBUG = yes}

This is necessary because correct debugging is dependent on using the 
correct switches in both the compile and link phases. Leaving out one of 
the attribute blocks, removes the correct flag for that phase. I would 
possibly expect

:program { var_DEBUG = yes} foo : foo.d

to work, but the DEBUG wasn't set for either action.

It doesn't really matter, since I was able to use the global DEBUG, but 
I think it should be possible (wasn't a similar problem discussed recently?)

Lars Ivar Igesund


-------------------------------------------------------
This SF.Net email is sponsored by OSTG. Have you noticed the changes on
Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now,
one more big change to announce. We are now OSTG- Open Source Technology
Group. Come see the changes on the new OSTG site. www.ostg.com