summaryrefslogtreecommitdiff
path: root/variable.c
diff options
context:
space:
mode:
authorPaul Smith <psmith@gnu.org>2004-03-22 15:11:48 +0000
committerPaul Smith <psmith@gnu.org>2004-03-22 15:11:48 +0000
commite334942e573ea8a4416eca0afafcaf45c3bba06f (patch)
tree856acdfc21f2aa5cbfca7dff414b193496f0d2c1 /variable.c
parentf305a52c02cd17188bb6cc429d56c5912c976229 (diff)
downloadgunmake-e334942e573ea8a4416eca0afafcaf45c3bba06f.tar.gz
Numerous updates and bug fixes.
A number of W32 cleanups from J.Grant. A number of OS/2 cleanups from Andreas Buening. Various random bug fixes.
Diffstat (limited to 'variable.c')
-rw-r--r--variable.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/variable.c b/variable.c
index d74672b..7b9d0d8 100644
--- a/variable.c
+++ b/variable.c
@@ -957,6 +957,11 @@ do_variable_definition (const struct floc *flocp, const char *varname,
append = 1;
v = lookup_variable_in_set (varname, strlen (varname),
current_variable_set_list->set);
+
+ /* Don't append from the global set if a previous non-appending
+ target-specific variable definition exists. */
+ if (v && !v->append)
+ append = 0;
}
else
v = lookup_variable (varname, strlen (varname));