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 a knob to control whether -V fully expands ...



details:   https://anonhg.NetBSD.org/src/rev/0b71a0dbe267
branches:  trunk
changeset: 781287:0b71a0dbe267
user:      sjg <sjg%NetBSD.org@localhost>
date:      Thu Aug 30 22:09:58 2012 +0000

description:
Add a knob to control whether -V fully expands a plain variable by default.
The default retains the traditional NetBSD behavior, but the knob
can be set so that FreeBSD can retain their expected behavior.
This is a compromise to be sure.

Add a debug flag -dV to override the above, so that regardless of
the knob setting, the raw value of a variable can be easily seen.

diffstat:

 usr.bin/make/make.1 |  12 ++++++++++--
 1 files changed, 10 insertions(+), 2 deletions(-)

diffs (40 lines):

diff -r 6f20a4215379 -r 0b71a0dbe267 usr.bin/make/make.1
--- a/usr.bin/make/make.1       Thu Aug 30 21:17:05 2012 +0000
+++ b/usr.bin/make/make.1       Thu Aug 30 22:09:58 2012 +0000
@@ -1,4 +1,4 @@
-.\"    $NetBSD: make.1,v 1.204 2012/04/24 20:12:16 sjg Exp $
+.\"    $NetBSD: make.1,v 1.205 2012/08/30 22:09:58 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 April 24, 2012
+.Dd August 30, 2012
 .Dt MAKE 1
 .Os
 .Sh NAME
@@ -203,6 +203,10 @@
 Print debugging information about suffix-transformation rules.
 .It Ar t
 Print debugging information about target list maintenance.
+.It Ar V
+Force the
+.Fl V
+option to print raw value of variables.
 .It Ar v
 Print debugging information about variable assignment.
 .It Ar x
@@ -675,6 +679,10 @@
 Names the makefile (default
 .Ql Pa .depend )
 from which generated dependencies are read.
+.It Va .MAKE.EXPAND_VARIABLES
+A boolean that controls the default behavior of the
+.Fl V
+option.
 .It Va .MAKE.EXPORTED
 The list of variables exported by
 .Nm .



Home | Main Index | Thread Index | Old Index