Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/make Allow an empty .MAKE.JOB.PREFIX to supress outp...
details: https://anonhg.NetBSD.org/src/rev/2fbb8a07d0ff
branches: trunk
changeset: 788952:2fbb8a07d0ff
user: sjg <sjg%NetBSD.org@localhost>
date: Tue Jul 30 19:09:57 2013 +0000
description:
Allow an empty .MAKE.JOB.PREFIX to supress output of --- job --- tokens
diffstat:
usr.bin/make/job.c | 8 ++++----
usr.bin/make/make.1 | 7 +++++--
2 files changed, 9 insertions(+), 6 deletions(-)
diffs (63 lines):
diff -r 3a583273e58d -r 2fbb8a07d0ff usr.bin/make/job.c
--- a/usr.bin/make/job.c Tue Jul 30 18:56:03 2013 +0000
+++ b/usr.bin/make/job.c Tue Jul 30 19:09:57 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: job.c,v 1.174 2013/07/05 22:14:56 sjg Exp $ */
+/* $NetBSD: job.c,v 1.175 2013/07/30 19:09:57 sjg Exp $ */
/*
* Copyright (c) 1988, 1989, 1990 The Regents of the University of California.
@@ -70,14 +70,14 @@
*/
#ifndef MAKE_NATIVE
-static char rcsid[] = "$NetBSD: job.c,v 1.174 2013/07/05 22:14:56 sjg Exp $";
+static char rcsid[] = "$NetBSD: job.c,v 1.175 2013/07/30 19:09:57 sjg Exp $";
#else
#include <sys/cdefs.h>
#ifndef lint
#if 0
static char sccsid[] = "@(#)job.c 8.2 (Berkeley) 3/19/94";
#else
-__RCSID("$NetBSD: job.c,v 1.174 2013/07/05 22:14:56 sjg Exp $");
+__RCSID("$NetBSD: job.c,v 1.175 2013/07/30 19:09:57 sjg Exp $");
#endif
#endif /* not lint */
#endif
@@ -332,7 +332,7 @@
#define TARG_FMT "%s %s ---\n" /* Default format */
#define MESSAGE(fp, gn) \
- if (maxJobs != 1) \
+ if (maxJobs != 1 && targPrefix && *targPrefix) \
(void)fprintf(fp, TARG_FMT, targPrefix, gn->name)
static sigset_t caught_signals; /* Set of signals we handle */
diff -r 3a583273e58d -r 2fbb8a07d0ff usr.bin/make/make.1
--- a/usr.bin/make/make.1 Tue Jul 30 18:56:03 2013 +0000
+++ b/usr.bin/make/make.1 Tue Jul 30 19:09:57 2013 +0000
@@ -1,4 +1,4 @@
-.\" $NetBSD: make.1,v 1.219 2013/07/16 14:00:53 christos Exp $
+.\" $NetBSD: make.1,v 1.220 2013/07/30 19:09:57 sjg Exp $
.\"
.\" Copyright (c) 1990, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -29,7 +29,7 @@
.\"
.\" from: @(#)make.1 8.4 (Berkeley) 3/19/94
.\"
-.Dd July 15, 2013
+.Dd July 30, 2013
.Dt MAKE 1
.Os
.Sh NAME
@@ -745,6 +745,9 @@
.Ql --- target ---
the first part of which can be controlled via
.Va .MAKE.JOB.PREFIX .
+If
+.Va .MAKE.JOB.PREFIX
+is empty, no token is printed.
.br
For example:
.Li .MAKE.JOB.PREFIX=${.newline}---${.MAKE:T}[${.MAKE.PID}]
Home |
Main Index |
Thread Index |
Old Index