summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--read.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/read.c b/read.c
index 0b60f77..eb35100 100644
--- a/read.c
+++ b/read.c
@@ -417,6 +417,8 @@ read_makefile (filename, type)
{
struct variable *v;
p2 = next_token (p + 6);
+ if (*p2 == '\0')
+ export_all_variables = 1;
v = try_variable_definition (p2, o_file);
if (v != 0)
v->export = 1;
@@ -438,6 +440,8 @@ read_makefile (filename, type)
unsigned int len;
struct variable *v;
p2 = next_token (p + 8);
+ if (*p2 == '\0')
+ export_all_variables = 0;
for (p = find_next_token (&p2, &len); p != 0;
p = find_next_token (&p2, &len))
{