summaryrefslogtreecommitdiffstats
path: root/usr.bin/make/main.c
diff options
context:
space:
mode:
authorfsmp <fsmp@FreeBSD.org>1997-08-14 19:24:11 +0000
committerfsmp <fsmp@FreeBSD.org>1997-08-14 19:24:11 +0000
commitb458c644f830ba84395a5e62c9236cb430c4f682 (patch)
tree03ce85762bd242227e839f20c0771ecb9002cb33 /usr.bin/make/main.c
parentdf2d634ff5af80a30ca26c66d14d6237c03f5741 (diff)
downloadFreeBSD-src-b458c644f830ba84395a5e62c9236cb430c4f682.zip
FreeBSD-src-b458c644f830ba84395a5e62c9236cb430c4f682.tar.gz
Better fix, as originally submitted by reporter.
Submitted by: N.Dudorov <nnd@itfs.nsk.su>
Diffstat (limited to 'usr.bin/make/main.c')
-rw-r--r--usr.bin/make/main.c19
1 files changed, 10 insertions, 9 deletions
diff --git a/usr.bin/make/main.c b/usr.bin/make/main.c
index 92b3de9d..de9588e 100644
--- a/usr.bin/make/main.c
+++ b/usr.bin/make/main.c
@@ -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.18 1997/07/24 06:58:06 charnier Exp $";
+ "$Id: main.c,v 1.1 1997/08/13 23:36:11 smp Exp smp $";
#endif /* not lint */
/*-
@@ -118,6 +118,7 @@ static Lst makefiles; /* ordered list of makefiles to read */
static Boolean printVars; /* print value of one or more vars */
static Lst variables; /* list of variables to print */
int maxJobs; /* -j argument */
+static Boolean forceJobs; /* -j argument given */
static int maxLocal; /* -L argument */
Boolean compatMake; /* -B argument */
Boolean debug; /* -d flag */
@@ -162,7 +163,6 @@ MainParseArgs(argc, argv)
extern int optind;
extern char *optarg;
int c;
- int forceJobs = 0;
optind = 1; /* since we're called more than once */
#ifdef REMOTE
@@ -337,13 +337,6 @@ rearg: while((c = getopt(argc, argv, OPTFLAGS)) != -1) {
}
(void)Lst_AtEnd(create, (ClientData)estrdup(*argv));
}
-
- /*
- * Be compatible if user did not specify -j and did not explicitly
- * turned compatibility on
- */
- if (!compatMake && !forceJobs)
- compatMake = TRUE;
}
/*-
@@ -559,6 +552,7 @@ main(argc, argv)
#else
maxJobs = maxLocal;
#endif
+ forceJobs = FALSE; /* No -j flag */
compatMake = FALSE; /* No compat mode */
@@ -607,6 +601,13 @@ main(argc, argv)
MainParseArgs(argc, argv);
/*
+ * Be compatible if user did not specify -j and did not explicitly
+ * turned compatibility on
+ */
+ if (!compatMake && !forceJobs)
+ compatMake = TRUE;
+
+ /*
* Initialize archive, target and suffix modules in preparation for
* parsing the makefile(s)
*/
OpenPOWER on IntegriCloud