diff options
| author | Juli Mallett <jmallett@FreeBSD.org> | 2002-06-20 19:51:13 +0000 |
|---|---|---|
| committer | Juli Mallett <jmallett@FreeBSD.org> | 2002-06-20 19:51:13 +0000 |
| commit | 9f3d7bf7586cc32b67f4b531ef9afb906858f1d7 (patch) | |
| tree | 28131396dee373ad246e28fb3941208a2e24ff8f /usr.bin/make | |
| parent | 7fc2a9f90cb2bb4cdb5a77b7cbfb013398f8e63f (diff) | |
Notes
Diffstat (limited to 'usr.bin/make')
| -rw-r--r-- | usr.bin/make/parse.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/usr.bin/make/parse.c b/usr.bin/make/parse.c index 3e1eed5b0358..e549bb3faaee 100644 --- a/usr.bin/make/parse.c +++ b/usr.bin/make/parse.c @@ -1434,6 +1434,14 @@ Parse_DoVar (line, ctxt) Boolean oldOldVars = oldVars; oldVars = FALSE; + + /* + * make sure that we set the variable the first time to nothing + * so that it gets substituted! + */ + if (!Var_Exists(line, ctxt)) + Var_Set(line, "", ctxt); + cp = Var_Subst(NULL, cp, ctxt, FALSE); oldVars = oldOldVars; |
