aboutsummaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorRuslan Ermilov <ru@FreeBSD.org>2004-03-09 17:36:55 +0000
committerRuslan Ermilov <ru@FreeBSD.org>2004-03-09 17:36:55 +0000
commit577cf233eb9a55e1810052be91a36f6fd35c59ba (patch)
treef4774b51f7c94b05c28d1417bb137322f4a4be76 /usr.bin
parentf25ee086333abf35a9b3cefef77a7cceee5b5b24 (diff)
downloadsrc-577cf233eb9a55e1810052be91a36f6fd35c59ba.tar.gz
src-577cf233eb9a55e1810052be91a36f6fd35c59ba.zip
Make it possible to ``.undef ${VAR}'' (expanding VAR to get
the variable name to undef). Submitted by: Cyrille Lefevre
Notes
Notes: svn path=/head/; revision=126779
Diffstat (limited to 'usr.bin')
-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 6be0cb1eeb80..279cf0f5300f 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;
}