Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/make add commented out a possible addition that prov...
details: https://anonhg.NetBSD.org/src/rev/099d347d5e9d
branches: trunk
changeset: 759225:099d347d5e9d
user: christos <christos%NetBSD.org@localhost>
date: Thu Dec 02 16:36:55 2010 +0000
description:
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.
diffstat:
usr.bin/make/var.c | 12 +++++++++---
1 files changed, 9 insertions(+), 3 deletions(-)
diffs (39 lines):
diff -r 38870a962537 -r 099d347d5e9d usr.bin/make/var.c
--- a/usr.bin/make/var.c Thu Dec 02 16:06:18 2010 +0000
+++ b/usr.bin/make/var.c Thu Dec 02 16:36:55 2010 +0000
@@ -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,
Home |
Main Index |
Thread Index |
Old Index