summaryrefslogtreecommitdiffstats
path: root/usr.bin/make
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>2004-03-09 17:36:55 +0000
committerru <ru@FreeBSD.org>2004-03-09 17:36:55 +0000
commitf4904161798c0e975b39eeb410bf57e52f3a4c6c (patch)
treef4774b51f7c94b05c28d1417bb137322f4a4be76 /usr.bin/make
parentc02494f6477cbbb4bc0a79e612f64761ee3042b1 (diff)
downloadFreeBSD-src-f4904161798c0e975b39eeb410bf57e52f3a4c6c.zip
FreeBSD-src-f4904161798c0e975b39eeb410bf57e52f3a4c6c.tar.gz
Make it possible to ``.undef ${VAR}'' (expanding VAR to get
the variable name to undef). Submitted by: Cyrille Lefevre
Diffstat (limited to 'usr.bin/make')
-rw-r--r--usr.bin/make/parse.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/usr.bin/make/parse.c b/usr.bin/make/parse.c
index 6be0cb1..279cf0f 100644
--- a/usr.bin/make/parse.c
+++ b/usr.bin/make/parse.c
@@ -2393,6 +2393,7 @@ Parse_File(char *name, FILE *stream)
*cp2 = '\0';
+ cp = Var_Subst(NULL, cp, VAR_CMD, FALSE);
Var_Delete(cp, VAR_GLOBAL);
goto nextLine;
}
OpenPOWER on IntegriCloud