Subject: bin/29545: make(1) accepts .else* as .else
To: None <,>
From: Thomas Klausner <>
List: netbsd-bugs
Date: 02/27/2005 12:12:01
>Number:         29545
>Category:       bin
>Synopsis:       make(1) accepts .else* as .else
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Feb 27 12:12:01 +0000 2005
>Originator:     Thomas Klausner
>Release:        NetBSD 2.0

System: NetBSD 2.0 NetBSD 2.0 (RAFFAELO) #0: Wed Dec 15 16:47:17 CET 2004 i386
Architecture: i386
Machine: i386
make(1) accepts every string that starts with ".else" as ".else".
In particular, this is annoying because people forget it's ".elif"
and not ".elseif" and make doesn't even warn about it, except if
there is another ".else*".

Use the following make rules:
.if defined(A)
	echo a
	echo not a
Not provided.