diff options
author | Boris Kolpackov <boris@kolpackov.net> | 2004-09-27 18:09:52 +0000 |
---|---|---|
committer | Boris Kolpackov <boris@kolpackov.net> | 2004-09-27 18:09:52 +0000 |
commit | 341312cc57eba0a1888b3dc89510894e3e7e42c9 (patch) | |
tree | 985bb6956edd15c2cfcd2902873872575a85094e /variable.c | |
parent | 29d78ddb2842d75956fb9b2f50fa7032f6a28416 (diff) | |
download | gunmake-341312cc57eba0a1888b3dc89510894e3e7e42c9.tar.gz |
bugfix for exported pattern-specific variables
Diffstat (limited to 'variable.c')
-rw-r--r-- | variable.c | 15 |
1 files changed, 11 insertions, 4 deletions
@@ -493,10 +493,17 @@ initialize_file_variables (struct file *file, int reading) current_variable_set_list = file->pat_variables; do - /* We found one, so insert it into the set. */ - do_variable_definition (&p->variable.fileinfo, p->variable.name, - p->variable.value, p->variable.origin, - p->variable.flavor, 1); + { + /* We found one, so insert it into the set. */ + struct variable *v = do_variable_definition ( + &p->variable.fileinfo, p->variable.name, + p->variable.value, p->variable.origin, + p->variable.flavor, 1); + + /* Also mark it as a per-target and copy export status. */ + v->per_target = p->variable.per_target; + v->export = p->variable.export; + } while ((p = lookup_pattern_var (p, file->name)) != 0); current_variable_set_list = global; |