Added a -v (verbose) option and hid multi-job file banner generation

behind it.
This commit is contained in:
David Greenman 1998-11-14 16:15:04 +00:00
parent a6a30776d3
commit 7009ec844f
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=41151
4 changed files with 15 additions and 7 deletions

View file

@ -35,7 +35,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $Id: job.c,v 1.9 1998/06/04 05:48:57 bde Exp $
* $Id: job.c,v 1.10 1998/08/24 10:15:53 cracauer Exp $
*/
#ifndef lint
@ -2423,7 +2423,7 @@ Job_Init(maxproc, maxlocal)
lastNode = NILGNODE;
if (maxJobs == 1
if (maxJobs == 1 || beVerbose == 0
#ifdef REMOTE
|| noMessages
#endif

View file

@ -47,7 +47,7 @@ static const char copyright[] =
static char sccsid[] = "@(#)main.c 8.3 (Berkeley) 3/19/94";
#endif
static const char rcsid[] =
"$Id: main.c,v 1.26 1998/09/09 14:58:30 kato Exp $";
"$Id: main.c,v 1.27 1998/10/18 00:51:46 obrien Exp $";
#endif /* not lint */
/*-
@ -133,6 +133,7 @@ Boolean touchFlag; /* -t flag */
Boolean usePipes; /* !-P flag */
Boolean ignoreErrors; /* -i flag */
Boolean beSilent; /* -s flag */
Boolean beVerbose; /* -v flag */
Boolean oldVars; /* variable substitution style */
Boolean checkEnvFirst; /* -e flag */
static Boolean jobsRunning; /* TRUE if the jobs might be running */
@ -171,9 +172,9 @@ MainParseArgs(argc, argv)
optind = 1; /* since we're called more than once */
#ifdef REMOTE
# define OPTFLAGS "BD:I:L:PSV:d:ef:ij:km:nqrst"
# define OPTFLAGS "BD:I:L:PSV:d:ef:ij:km:nqrstv"
#else
# define OPTFLAGS "BD:I:PSV:d:ef:ij:km:nqrst"
# define OPTFLAGS "BD:I:PSV:d:ef:ij:km:nqrstv"
#endif
rearg: while((c = getopt(argc, argv, OPTFLAGS)) != -1) {
switch(c) {
@ -320,6 +321,10 @@ rearg: while((c = getopt(argc, argv, OPTFLAGS)) != -1) {
touchFlag = TRUE;
Var_Append(MAKEFLAGS, "-t", VAR_GLOBAL);
break;
case 'v':
beVerbose = TRUE;
Var_Append(MAKEFLAGS, "-v", VAR_GLOBAL);
break;
default:
case '?':
usage();

View file

@ -30,7 +30,7 @@
.\" SUCH DAMAGE.
.\"
.\" from: @(#)make.1 8.4 (Berkeley) 3/19/94
.\" $Id: make.1,v 1.12 1998/05/25 03:28:37 steve Exp $
.\" $Id: make.1,v 1.13 1998/10/18 00:51:46 obrien Exp $
.\"
.Dd March 19, 1994
.Dt MAKE 1
@ -173,6 +173,8 @@ before each command line in the makefile.
.It Fl t
Rather than re-building a target as specified in the makefile, create it
or update its modification time to make it appear up-to-date.
.It Fl v
Be extra verbose. For multi-job makes, this will cause file banners to be generated.
.It Fl V Ar variable
Print
.Nm make Ns 's

View file

@ -36,7 +36,7 @@
* SUCH DAMAGE.
*
* from: @(#)make.h 8.3 (Berkeley) 6/13/95
* $Id$
* $Id: make.h,v 1.7 1997/02/22 19:27:16 peter Exp $
*/
/*-
@ -294,6 +294,7 @@ extern Lst dirSearchPath; /* The list of directories to search when
extern Boolean compatMake; /* True if we are make compatible */
extern Boolean ignoreErrors; /* True if should ignore all errors */
extern Boolean beSilent; /* True if should print no commands */
extern Boolean beVerbose; /* True if should print extra cruft */
extern Boolean noExecute; /* True if should execute nothing */
extern Boolean allPrecious; /* True if every target is precious */
extern Boolean keepgoing; /* True if should continue on unaffected