diff options
author | Igor Pashev <pashev.igor@gmail.com> | 2015-03-24 21:29:00 +0300 |
---|---|---|
committer | Igor Pashev <pashev.igor@gmail.com> | 2015-03-24 21:34:59 +0300 |
commit | 036ccd8efa9ca16734b8baf4cc022eacb5d78576 (patch) | |
tree | 9338084f941380ef56eda8e52042652d5690656d /read.c | |
parent | 87e2dd5c98e7bdd770914c2404efd8194778fc93 (diff) | |
download | gunmake-036ccd8efa9ca16734b8baf4cc022eacb5d78576.tar.gz |
Support SunOS make target-specific variables
Diffstat (limited to 'read.c')
-rw-r--r-- | read.c | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -1157,6 +1157,10 @@ eval (struct ebuffer *ebuf, int set_default) if (two_colon) p2++; + /* In sunmake mode ":=" means target-specific variable, not ":" */ + if (sun_flag && (*p2 == '=')) + p2++; + /* Test to see if it's a target-specific variable. Copy the rest of the buffer over, possibly temporarily (we'll expand it later if it's not a target-specific variable). PLEN saves the length @@ -2668,7 +2672,8 @@ get_next_mword (char *buffer, char *delim, char **startp, unsigned int *length) case '=': ++p; - wtype = w_varassign; + /* In sunmake mode ":=" acts as ":" in normal mode. */ + wtype = sun_flag ? w_colon : w_varassign; break; } break; |