Re: fileList does not seem to expand variables
Sebastian Schuberth <[email protected]> Wed, 06 Aug 2008 17:28:52 +0200
| Newsgroups | gmane.comp.sysutils.bakefile.devel |
|---|---|
| Message-ID | <[email protected]> |
> On Wed, 2008-08-06 at 16:47 +0200, Sebastian Schuberth wrote: >> <headers> >> $(fileList(["$(HEADER_ROOT)/gale/math/*.h",'$(HEADER_ROOT)/*.inl'])) >> </headers> > ... >> It seems fileList() does not expand $(HEADER_ROOT): > > Because you're trying to double-expand it. $(expr) substitutes the value > of expr, which is a Python expression (or a variable reference, which is > just a special case of Python expression). You wouldn't try to reference > a variable as $($(FOO)) either. Furthermore, the $(HEADER_ROOT) uses are > inside quotes, so it's a string _literal_. > > What you want to do is this: > > $(fileList([HEADER_ROOT"+/gale/math/*.h",HEADER_ROOT+"/*.inl"])) Thanks a lot, that works. For my better understanding, the doc page at http://www.bakefile.org/doc/ch08.html reads as if only the Python functions listed there can be called by Bakefile ... I guess this actually is not true, but in fact any core function of the Python language can be called, the listed functions only being additional convenience functions, correct? -- Sebastian Schuberth ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/