`make FOO=1 BAR=2 ...' works as expected and lots of things wouldn't work
if make only accepted a single assignment, as currently documented.
Fix SYNOPSIS and usage to match reality and POSIX spec (thanks jmc).
OK jmc
-/* $OpenBSD: main.c,v 1.128 2022/12/04 23:50:48 cheloha Exp $ */
+/* $OpenBSD: main.c,v 1.129 2023/01/17 13:03:22 kn Exp $ */
/* $NetBSD: main.c,v 1.34 1997/03/24 20:56:36 gwr Exp $ */
/*
(void)fprintf(stderr,
"usage: make [-BeiknpqrSst] [-C directory] [-D variable] [-d flags] [-f mk]\n\
[-I directory] [-j max_processes] [-m directory] [-V variable]\n\
- [NAME=value] [target ...]\n");
+ [NAME=value ...] [target ...]\n");
exit(2);
}
-.\" $OpenBSD: make.1,v 1.138 2022/12/28 13:00:57 jsg Exp $
+.\" $OpenBSD: make.1,v 1.139 2023/01/17 13:03:22 kn Exp $
.\" $NetBSD: make.1,v 1.18 1997/03/10 21:19:53 christos Exp $
.\"
.\" Copyright (c) 1990, 1993
.\"
.\" from: @(#)make.1 8.4 (Berkeley) 3/19/94
.\"
-.Dd $Mdocdate: December 28 2022 $
+.Dd $Mdocdate: January 17 2023 $
.Dt MAKE 1
.Os
.Sh NAME
.Op Fl j Ar max_processes
.Op Fl m Ar directory
.Op Fl V Ar variable
-.Op Ar NAME Ns = Ns Ar value
+.Op Ar NAME Ns = Ns Ar value ...
.Bk -words
.Op Ar target ...
.Ek