diff options
author | Paul Smith <psmith@gnu.org> | 2002-08-01 13:16:57 +0000 |
---|---|---|
committer | Paul Smith <psmith@gnu.org> | 2002-08-01 13:16:57 +0000 |
commit | bccb277dda1a4dcc6729824a7c9d544086f147c3 (patch) | |
tree | 693bb06d69dd6e4829d8d1b1d339a694ff162ad3 /ChangeLog | |
parent | a56563badd9b3cab2624c35f3a8104a3bb3b5f52 (diff) | |
download | gunmake-bccb277dda1a4dcc6729824a7c9d544086f147c3.tar.gz |
New variables, .VARIABLES and .TARGETS.
Diffstat (limited to 'ChangeLog')
-rw-r--r-- | ChangeLog | 25 |
1 files changed, 25 insertions, 0 deletions
@@ -1,3 +1,28 @@ +2002-08-01 Paul D. Smith <psmith@gnu.org> + + Add new introspection variables .VARIABLES and .TARGETS. + + * variable.c (handle_special_var): New function. If the variable + reference passed in is "special" (.VARIABLES or .TARGETS), + calculate the new value if necessary. .VARIABLES is handled here: + walk through the hash of defined variables and construct a value + which is a list of the names. .TARGETS is handled by + build_target_list(). + (lookup_variable): Invoke handle_special_var(). + * file.c (build_target_list): Walk through the hask of known files + and construct a list of the names of all the ones marked as + targets. + * main.c (main): Initialize them to empty (and as simple variables). + * doc/make.texi (Special Variables): Document them. + * NEWS: Mention them. + + * variable.h (struct variable): Add a new flag "exportable" which + is true if the variable name is valid for export. + * variable.c (define_variable_in_set): Set "exportable" when a new + variable is defined. + (target_environment): Use the "exportable" flag instead of + re-checking the name here... an efficiency improvement. + 2002-07-10 Paul D. Smith <psmith@gnu.org> * variable.c (pop_variable_scope): Remove variable made unused by |