> No, there is no such thing as variable scoping in GNU make.  The sole
> exception is for target- and pattern-specific variables, but that's
> probably too fine-grained to be useful for your purposes.
Ok, so it looks like emulating scoped variables through a stack is the
way to go. 

> People typically implement scoping implicitly, through a variable naming
> convention.
I can't do that, as I'm traversing my included .mk-files recursively and
I want to give the "user" access to these variables on each level.

Just a shy suggestion: Wouldn't be support for scoping (in GNU make 4.0 ;-))
a cool feature to help writing much better makefiles?

Cheers,

Christof 

_______________________________________________
Help-make mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-make

Reply via email to