Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/make make(1): rename MAKEFILE_PREFERENCE for consist...
details: https://anonhg.NetBSD.org/src/rev/4e67cf1828e9
branches: trunk
changeset: 942041:4e67cf1828e9
user: rillig <rillig%NetBSD.org@localhost>
date: Wed Nov 04 13:22:15 2020 +0000
description:
make(1): rename MAKEFILE_PREFERENCE for consistency
The names of the other special variables are all prefixed with MAKE_.
diffstat:
usr.bin/make/main.c | 8 ++++----
usr.bin/make/make.h | 4 ++--
2 files changed, 6 insertions(+), 6 deletions(-)
diffs (54 lines):
diff -r 438db11933b0 -r 4e67cf1828e9 usr.bin/make/main.c
--- a/usr.bin/make/main.c Wed Nov 04 13:04:56 2020 +0000
+++ b/usr.bin/make/main.c Wed Nov 04 13:22:15 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: main.c,v 1.423 2020/11/04 04:49:32 rillig Exp $ */
+/* $NetBSD: main.c,v 1.424 2020/11/04 13:22:15 rillig Exp $ */
/*
* Copyright (c) 1988, 1989, 1990, 1993
@@ -118,7 +118,7 @@
#include "trace.h"
/* "@(#)main.c 8.3 (Berkeley) 3/19/94" */
-MAKE_RCSID("$NetBSD: main.c,v 1.423 2020/11/04 04:49:32 rillig Exp $");
+MAKE_RCSID("$NetBSD: main.c,v 1.424 2020/11/04 13:22:15 rillig Exp $");
#if defined(MAKE_NATIVE) && !defined(lint)
__COPYRIGHT("@(#) Copyright (c) 1988, 1989, 1990, 1993 "
"The Regents of the University of California. "
@@ -1272,7 +1272,7 @@
}
} else {
char *p1;
- (void)Var_Subst("${" MAKEFILE_PREFERENCE "}",
+ (void)Var_Subst("${" MAKE_MAKEFILE_PREFERENCE "}",
VAR_CMDLINE, VARE_WANTRES, &p1);
/* TODO: handle errors */
(void)str2Lst_Append(opts.makefiles, p1, NULL);
@@ -1395,7 +1395,7 @@
#ifndef MAKEFILE_PREFERENCE_LIST
# define MAKEFILE_PREFERENCE_LIST "makefile Makefile"
#endif
- Var_Set(MAKEFILE_PREFERENCE, MAKEFILE_PREFERENCE_LIST,
+ Var_Set(MAKE_MAKEFILE_PREFERENCE, MAKEFILE_PREFERENCE_LIST,
VAR_GLOBAL);
Var_Set(MAKE_DEPENDFILE, ".depend", VAR_GLOBAL);
diff -r 438db11933b0 -r 4e67cf1828e9 usr.bin/make/make.h
--- a/usr.bin/make/make.h Wed Nov 04 13:04:56 2020 +0000
+++ b/usr.bin/make/make.h Wed Nov 04 13:22:15 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: make.h,v 1.184 2020/11/04 13:04:56 rillig Exp $ */
+/* $NetBSD: make.h,v 1.185 2020/11/04 13:22:15 rillig Exp $ */
/*
* Copyright (c) 1988, 1989, 1990, 1993
@@ -475,7 +475,7 @@
#define MAKE_EXPORTED ".MAKE.EXPORTED" /* variables we export */
#define MAKE_MAKEFILES ".MAKE.MAKEFILES" /* all makefiles already loaded */
#define MAKE_LEVEL ".MAKE.LEVEL" /* recursion level */
-#define MAKEFILE_PREFERENCE ".MAKE.MAKEFILE_PREFERENCE"
+#define MAKE_MAKEFILE_PREFERENCE ".MAKE.MAKEFILE_PREFERENCE"
#define MAKE_DEPENDFILE ".MAKE.DEPENDFILE" /* .depend */
#define MAKE_MODE ".MAKE.MODE"
#ifndef MAKE_LEVEL_ENV
Home |
Main Index |
Thread Index |
Old Index