summaryrefslogtreecommitdiff
path: root/variable.c
diff options
context:
space:
mode:
authorIgor Pashev <pashev.igor@gmail.com>2015-03-24 21:29:00 +0300
committerIgor Pashev <pashev.igor@gmail.com>2015-03-24 21:34:59 +0300
commit036ccd8efa9ca16734b8baf4cc022eacb5d78576 (patch)
tree9338084f941380ef56eda8e52042652d5690656d /variable.c
parent87e2dd5c98e7bdd770914c2404efd8194778fc93 (diff)
downloadgunmake-036ccd8efa9ca16734b8baf4cc022eacb5d78576.tar.gz
Support SunOS make target-specific variables
Diffstat (limited to 'variable.c')
-rw-r--r--variable.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/variable.c b/variable.c
index 0b89d37..207b6d8 100644
--- a/variable.c
+++ b/variable.c
@@ -1492,6 +1492,9 @@ parse_variable_definition (const char *p, struct variable *var)
switch (c)
{
case ':':
+ /* In sunmake mode ":=" is not a variable assignment. */
+ if (sun_flag)
+ return NULL;
var->flavor = f_simple;
break;
case '+':