On Dec 17, 2007 10:08 AM, Kevin Klues <[EMAIL PROTECTED]> wrote:
>
>
> > Someone please correct me if I'm wrong, but one major motivation for %
> > T was .platform, where you can't apply make variable substitution.
>
> This discussion started while talking about .platform files for platforms
> developed inside contrib (see subject) and how to most easily reference the
> directories they need to include when being compiled.
It sounds like the reasonable approach is to:
- define a standard env variable for contrib (TOSCONTRIB?)
- use that in Makefiles and .platform files where necessary (.platform
files are perl, so it's $ENV{TOSCONTRIB} (within a string) or
$ENV{"TOSCONTRIB"} (outside a string) to get to the variable)
I'm with Phil on the principle that the % thingies should only be for
references to things within the tos hierarchy.
Btw, for .platform-in-contrib purposes, %P can be useful: it expands
to the directory where the .platform was found... (and this will
therefore work within contrib)
David
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help