+2004-09-27 Boris Kolpackov <boris@kolpackov.net>
+
+ * variable.c (initialize_file_variables): Mark pattern-specific
+ variable as a per-target and copy export status.
+
2004-09-21 Boris Kolpackov <boris@kolpackov.net>
* file.c (snap_deps): Mark .PHONY prerequisites as targets.
+2004-09-27 Boris Kolpackov <boris@kolpackov.net>
+
+ * scripts/features/patspecific_vars: Test exported variables.
+
2004-09-22 Paul D. Smith <psmith@gnu.org>
* run_make_tests.pl (run_make_test): Don't add newlines to the
$answer = "aaa bbb\nccc ddd\n";
&compare_output($answer,&get_logfile(1));
+# TEST #5 -- test pattern-specific exported variables
+#
+run_make_test('
+/%: export foo := foo
+
+/bar:
+ @test "$(foo)" == "$$foo"
+', '', '');
+
1;
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;