diff options
author | 2000-01-19 17:28:52 +0000 | |
---|---|---|
committer | 2000-01-19 17:28:52 +0000 | |
commit | c0ac508c4d37b5a39ccc6608fa57499ace9cfa8d (patch) | |
tree | 30081cfe4fef62acfbf452bde4d6941b871e3b69 | |
parent | cvs did a good job of merging changes, but the resulting configure (diff) | |
download | wireguard-openbsd-c0ac508c4d37b5a39ccc6608fa57499ace9cfa8d.tar.xz wireguard-openbsd-c0ac508c4d37b5a39ccc6608fa57499ace9cfa8d.zip |
.MAIN is nothing special.
Silently ignoring all commands but the first set in a normal dependency
is a generic `feature' of make.
-rw-r--r-- | usr.bin/make/make.1 | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/usr.bin/make/make.1 b/usr.bin/make/make.1 index 5fb145405cf..8beee9c2264 100644 --- a/usr.bin/make/make.1 +++ b/usr.bin/make/make.1 @@ -1,4 +1,4 @@ -.\" $OpenBSD: make.1,v 1.26 2000/01/02 15:59:52 espie Exp $ +.\" $OpenBSD: make.1,v 1.27 2000/01/19 17:28:52 espie Exp $ .\" $NetBSD: make.1,v 1.18 1997/03/10 21:19:53 christos Exp $ .\" .\" Copyright (c) 1990, 1993 @@ -1166,11 +1166,18 @@ The determination of .Va .OBJDIR is contorted to the point of absurdity. .Pp -In the presence of several -.Ic .MAIN -special targets, -.Nm -silently ignores all but the first. +If you specify the same target several times in normal dependency rules, +.Nm +silently ignores all commands after the first non empty set of commands, +e.g., in +.Bd -literal +a: + @echo "Executed" +a: + @echo "Bad luck" +.Ed +.Pp +@echo "Bad luck" will be silently ignored. .Pp .Va .TARGETS is not set to the default target when |