[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: scoping of variables
From: |
Warlich, Christof |
Subject: |
RE: scoping of variables |
Date: |
Thu, 4 Nov 2010 15:55:39 +0100 |
> 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