MakeVarList Class¶
The MakeVarList class acts as a collection of all the variables extracted from the Makefile
Class Description¶
-
class
MakeVarList
¶ Represents a collection of variables extracted from a Makefile.
Public Functions
-
__init__
(launcher = None)¶ Class initialiser.
- Parameters
launcher
: If a launcher is specified then we can use that for extracting more info later on.
-
parse_vars
(dbtxt)¶ Parse the Makefile text database.
Generate the (key,value) dict of all variables defined in make process.
- Return
The parsed variables.
- Parameters
dbtxt
: The database text to use / parse.
-
expand_var
(vals, usemake = False)¶ Expand a given variable (or list of variables) within the Makefile database.
- Return
The expanded variable(s).
- Parameters
vals
: A variable name, or list of variable names.usemake
: if to use make to do the expansion.
-
expand_expr
(vals, usemake = False)¶ Expand a given expression (or list of expressions) within the Makefile database.
- Return
The expanded expression(s).
- Parameters
vals
: An expression, or list of expressions.usemake
: if to use make to do the expansion.
Public Members
-
values
¶ The make database parsed as a collection of values.
-
launcher
¶ If a launcher is specified then we can use that for extracting more info later on.
-
origin
¶ Which variable types (origins) to include / look for.
‘automatic’, ‘environment’, ‘default’, ‘override’, ‘makefile’.
None returns all origins. The default is [‘environment’, ‘makefile’].
-