Subject: bin/29545: make(1) accepts .else* as .else
To: None <gnats-admin@netbsd.org, netbsd-bugs@netbsd.org>
From: Thomas Klausner <wiz@NetBSD.org>
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
>Organization:

>Environment:
	
	
System: NetBSD dmath5.geometrie.tuwien.ac.at 2.0 NetBSD 2.0 (RAFFAELO) #0: Wed Dec 15 16:47:17 CET 2004 wiz@dmath5.geometrie.tuwien.ac.at:/home/2.0-src/sys/arch/i386/compile/RAFFAELO i386
Architecture: i386
Machine: i386
>Description:
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*".
>How-To-Repeat:

Use the following make rules:
.if defined(A)
a:
	echo a
.elseidontcare
b:
	echo not a
.endif
>Fix:
Not provided.

>Unformatted: