Module Name: src
Committed By: christos
Date: Thu Dec 2 16:36:55 UTC 2010
Modified Files:
src/usr.bin/make: var.c
Log Message:
add commented out a possible addition that provides $^ like gmake, but
I am not sure if we should add it, since we already have $> for it.
To generate a diff of this commit:
cvs rdiff -u -r1.159 -r1.160 src/usr.bin/make/var.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/usr.bin/make/var.c
diff -u src/usr.bin/make/var.c:1.159 src/usr.bin/make/var.c:1.160
--- src/usr.bin/make/var.c:1.159 Sat Jun 5 21:13:12 2010
+++ src/usr.bin/make/var.c Thu Dec 2 11:36:55 2010
@@ -1,4 +1,4 @@
-/* $NetBSD: var.c,v 1.159 2010/06/06 01:13:12 sjg Exp $ */
+/* $NetBSD: var.c,v 1.160 2010/12/02 16:36:55 christos Exp $ */
/*
* Copyright (c) 1988, 1989, 1990, 1993
@@ -69,14 +69,14 @@
*/
#ifndef MAKE_NATIVE
-static char rcsid[] = "$NetBSD: var.c,v 1.159 2010/06/06 01:13:12 sjg Exp $";
+static char rcsid[] = "$NetBSD: var.c,v 1.160 2010/12/02 16:36:55 christos Exp $";
#else
#include <sys/cdefs.h>
#ifndef lint
#if 0
static char sccsid[] = "@(#)var.c 8.3 (Berkeley) 3/19/94";
#else
-__RCSID("$NetBSD: var.c,v 1.159 2010/06/06 01:13:12 sjg Exp $");
+__RCSID("$NetBSD: var.c,v 1.160 2010/12/02 16:36:55 christos Exp $");
#endif
#endif /* not lint */
#endif
@@ -379,6 +379,12 @@
name = TARGET;
break;
}
+#ifdef notyet
+ /* for compatibility with gmake */
+ if (name[0] == '^' && name[1] == '\0')
+ name = ALLSRC;
+#endif
+
/*
* First look for the variable in the given context. If it's not there,
* look for it in VAR_CMD, VAR_GLOBAL and the environment, in that order,