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 $@ an alias for $! in archive member rules...
details: https://anonhg.NetBSD.org/src/rev/6c91d268beac
branches: trunk
changeset: 344125:6c91d268beac
user: matthias <matthias%NetBSD.org@localhost>
date: Mon Mar 14 07:42:15 2016 +0000
description:
make $@ an alias for $! in archive member rules (compatibility with
other makes).
diffstat:
usr.bin/make/make.1 | 5 ++++-
usr.bin/make/suff.c | 11 ++++++++---
2 files changed, 12 insertions(+), 4 deletions(-)
diffs (57 lines):
diff -r e79672da3424 -r 6c91d268beac usr.bin/make/make.1
--- a/usr.bin/make/make.1 Mon Mar 14 07:33:27 2016 +0000
+++ b/usr.bin/make/make.1 Mon Mar 14 07:42:15 2016 +0000
@@ -1,4 +1,4 @@
-.\" $NetBSD: make.1,v 1.254 2016/02/20 01:43:28 wiz Exp $
+.\" $NetBSD: make.1,v 1.255 2016/03/14 07:42:15 matthias Exp $
.\"
.\" Copyright (c) 1990, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -685,6 +685,9 @@
.It Va .TARGET
The name of the target; also known as
.Ql Va @ .
+For compatibility with other makes this is an alias for
+.Ic Va .ARCHIVE
+in archive member rules.
.El
.Pp
The shorter forms
diff -r e79672da3424 -r 6c91d268beac usr.bin/make/suff.c
--- a/usr.bin/make/suff.c Mon Mar 14 07:33:27 2016 +0000
+++ b/usr.bin/make/suff.c Mon Mar 14 07:42:15 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: suff.c,v 1.78 2016/02/18 18:29:14 christos Exp $ */
+/* $NetBSD: suff.c,v 1.79 2016/03/14 07:42:15 matthias Exp $ */
/*
* Copyright (c) 1988, 1989, 1990, 1993
@@ -69,14 +69,14 @@
*/
#ifndef MAKE_NATIVE
-static char rcsid[] = "$NetBSD: suff.c,v 1.78 2016/02/18 18:29:14 christos Exp $";
+static char rcsid[] = "$NetBSD: suff.c,v 1.79 2016/03/14 07:42:15 matthias Exp $";
#else
#include <sys/cdefs.h>
#ifndef lint
#if 0
static char sccsid[] = "@(#)suff.c 8.4 (Berkeley) 3/21/94";
#else
-__RCSID("$NetBSD: suff.c,v 1.78 2016/02/18 18:29:14 christos Exp $");
+__RCSID("$NetBSD: suff.c,v 1.79 2016/03/14 07:42:15 matthias Exp $");
#endif
#endif /* not lint */
#endif
@@ -1955,6 +1955,11 @@
Var_Set(MEMBER, name, gn, 0);
Var_Set(ARCHIVE, gn->name, gn, 0);
+ /*
+ * Set $@ for compatibility with other makes
+ */
+ Var_Set(TARGET, gn->name, gn, 0);
+
if (ms != NULL) {
/*
* Member has a known suffix, so look for a transformation rule from
Home |
Main Index |
Thread Index |
Old Index