summaryrefslogtreecommitdiff
path: root/usr.bin/make
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2000-01-19 17:28:53 +0000
committerMarc Espie <espie@cvs.openbsd.org>2000-01-19 17:28:53 +0000
commit9502ba530e147cbc1c48ea061cfaf9230d5d0690 (patch)
tree9770d041d9f16c698e8b5acb9952dedf481c028c /usr.bin/make
parent96535a5979ff7719a1398bba2558a7230c351952 (diff)
.MAIN is nothing special.
Silently ignoring all commands but the first set in a normal dependency is a generic `feature' of make.
Diffstat (limited to 'usr.bin/make')
-rw-r--r--usr.bin/make/make.119
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