diff options
author | harti <harti@FreeBSD.org> | 2004-07-29 14:29:23 +0000 |
---|---|---|
committer | harti <harti@FreeBSD.org> | 2004-07-29 14:29:23 +0000 |
commit | 0db0c049544bc4a655f7d5507925d5e8fc791934 (patch) | |
tree | 1b3c9d7d8acc8e298f77ed6d6293d0d878e6cdae /usr.bin/make/make.1 | |
parent | 382d8a7db30af3cd51ffd86e32fc98350419aeb0 (diff) | |
download | FreeBSD-src-0db0c049544bc4a655f7d5507925d5e8fc791934.zip FreeBSD-src-0db0c049544bc4a655f7d5507925d5e8fc791934.tar.gz |
Implement POSIX's '+' flag for command lines. This flag causes a line
to be executed even when -n is given on the command line to make. This is
very handy for calls to submakes.
This is slightly changed from the original patch as obtained from NetBSD.
The NetBSD variant prints lines which have both '+' and '@' when -n
is specified. The commited version always obeys '@'.
Bump MAKE_VERSION so Makefiles can use this conditionally.
PR: standards/66357 (partly)
Submitted by: Mark Baushke <mdb@juniper.net>
Obtained from: NetBSD
Diffstat (limited to 'usr.bin/make/make.1')
-rw-r--r-- | usr.bin/make/make.1 | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/usr.bin/make/make.1 b/usr.bin/make/make.1 index a55c5bc..97e7423 100644 --- a/usr.bin/make/make.1 +++ b/usr.bin/make/make.1 @@ -320,10 +320,11 @@ dependencies may be followed by a creation script, unless the .Sq Ic :: operator is used. .Pp -If the first or first two characters of the command line are -.Sq Ic @ -and/or +If the first characters of the command line are +.Sq Ic @ , .Sq Ic \- , +and/or +.Sq Ic + , the command is treated specially. A .Sq Ic @ @@ -331,6 +332,11 @@ causes the command not to be echoed before it is executed. A .Sq Ic \- causes any non-zero exit status of the command line to be ignored. +A +.Sq Ic + +causes the command to be executed even if +.Fl n +is specified on the command line. .Sh VARIABLE ASSIGNMENTS Variables in .Nm |