Re: Re: [A-a-p-user] dependencies in generated C++ files
Adriaan de Groot <adridg-FlD2LfDziEhmR6Xm/[email protected]>
| Newsgroups | gmane.comp.tools.aap.devel |
|---|---|
| Message-ID | <[email protected]> |
On Monday 06 October 2003 22:14, you wrote:
> That is a possible solution. But we already have src2obj(), which does
> something very similar.
>
> This assumes you know when a file could be in a build directory. You
> could then do:
>
> with_new_bdir = $BDIR/`strip_bdir(_no.with_old_bdir)`
>
> It's a bit longer than your proposed bdir() function though...
def bdir(s)
if s.starts_with(_no.get("BDIR")):
return s
else:
return _no.get("BDIR") + s
with perhaps a check that BDIR is defined. I'll play around and see what
works.
--
pub 1024D/FEA2A3FE 2002-06-18 Adriaan de Groot <[email protected]>
If the door is ajar, can we fill it with door-jamb?
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf