summaryrefslogtreecommitdiff
path: root/usr.bin/make/make.c
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2020-01-08 14:09:30 +0000
committerMarc Espie <espie@cvs.openbsd.org>2020-01-08 14:09:30 +0000
commit7f288945c56301f34ea4f95b7c715b915d0021a8 (patch)
treea0b39f0beaac248d4ef9872de7b7256a295a6877 /usr.bin/make/make.c
parenta665681392913166e4df89b0b406094633fbc8b5 (diff)
fix -q: in compatMode, compute and return outofdate just like parallel mode.
Also, never run .END in querymode (we don't actually care about updating problem in that case). okay millert@
Diffstat (limited to 'usr.bin/make/make.c')
-rw-r--r--usr.bin/make/make.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/make/make.c b/usr.bin/make/make.c
index 02e048ac056..a1788ee6ac1 100644
--- a/usr.bin/make/make.c
+++ b/usr.bin/make/make.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: make.c,v 1.76 2019/12/21 15:31:54 espie Exp $ */
+/* $OpenBSD: make.c,v 1.77 2020/01/08 14:09:29 espie Exp $ */
/* $NetBSD: make.c,v 1.10 1996/11/06 17:59:15 christos Exp $ */
/*
@@ -572,7 +572,8 @@ Make_Run(Lst targs) /* the initial list of targets */
(void)MakeStartJobs();
}
- problem = Job_Finish();
+ if (!queryFlag)
+ problem = Job_Finish();
/*
* Print the final status of each target. E.g. if it wasn't made