Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/make Set .MAKE.LEVEL.ENV to the name of the env vari...
details: https://anonhg.NetBSD.org/src/rev/fd2d13f727f1
branches: trunk
changeset: 787860:fd2d13f727f1
user: sjg <sjg%NetBSD.org@localhost>
date: Tue Jul 09 18:13:14 2013 +0000
description:
Set .MAKE.LEVEL.ENV to the name of the env variable used to communicate
the recursion level to sub-makes.
diffstat:
usr.bin/make/main.c | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diffs (36 lines):
diff -r 49c31974c888 -r fd2d13f727f1 usr.bin/make/main.c
--- a/usr.bin/make/main.c Tue Jul 09 17:49:37 2013 +0000
+++ b/usr.bin/make/main.c Tue Jul 09 18:13:14 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: main.c,v 1.216 2013/07/06 18:19:17 sjg Exp $ */
+/* $NetBSD: main.c,v 1.217 2013/07/09 18:13:14 sjg Exp $ */
/*
* Copyright (c) 1988, 1989, 1990, 1993
@@ -69,7 +69,7 @@
*/
#ifndef MAKE_NATIVE
-static char rcsid[] = "$NetBSD: main.c,v 1.216 2013/07/06 18:19:17 sjg Exp $";
+static char rcsid[] = "$NetBSD: main.c,v 1.217 2013/07/09 18:13:14 sjg Exp $";
#else
#include <sys/cdefs.h>
#ifndef lint
@@ -81,7 +81,7 @@
#if 0
static char sccsid[] = "@(#)main.c 8.3 (Berkeley) 3/19/94";
#else
-__RCSID("$NetBSD: main.c,v 1.216 2013/07/06 18:19:17 sjg Exp $");
+__RCSID("$NetBSD: main.c,v 1.217 2013/07/09 18:13:14 sjg Exp $");
#endif
#endif /* not lint */
#endif
@@ -932,6 +932,8 @@
Var_Set(MAKEOVERRIDES, "", VAR_GLOBAL, 0);
Var_Set("MFLAGS", "", VAR_GLOBAL, 0);
Var_Set(".ALLTARGETS", "", VAR_GLOBAL, 0);
+ /* some makefiles need to know this */
+ Var_Set(MAKE_LEVEL ".ENV", MAKE_LEVEL_ENV, VAR_GLOBAL, 0);
/*
* Set some other useful macros
Home |
Main Index |
Thread Index |
Old Index