Re: fileList does not seem to expand variables
Vaclav Slavik <[email protected]> Wed, 06 Aug 2008 17:03:38 +0200
| Newsgroups | gmane.comp.sysutils.bakefile.devel |
|---|---|
| Message-ID | <1218035018.13476.80.camel@localhost> |
Hi, 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"])) Regards, Vaclav ------------------------------------------------------------------------- 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=/ _______________________________________________ Bakefile-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/bakefile-devel
signature.asc
(application/pgp-signature, 197 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) iEYEABECAAYFAkiZvUoACgkQxDYa/UZSZMlRMACcDTkVJ+56cauauV9ksXX/mizI 39EAoJLzjtVqI8384FPX/1U4SvNsufq7 =rWss -----END PGP SIGNATURE-----