Subject: bin/24420: make(1) doesn't fail even if reading .else twice
To: None <gnats-bugs@gnats.netbsd.org>
From: None <uebayasi@NetBSD.org>
List: netbsd-bugs
Date: 02/14/2004 16:42:22
>Number: 24420
>Category: bin
>Synopsis: make(1) doesn't fail even if reading .else twice
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: bin-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sat Feb 14 07:43:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator: Masao Uebayashi
>Release: NetBSD 1.6ZH
>Organization:
Pultek Corp.
>Environment:
System: NetBSD oratosquilla.PLALA-ADSL 1.6ZH NetBSD 1.6ZH (ORATOSQUILLA) #1: Sat Jan 24 17:08:16 JST 2004 uebayasi@oratosquilla.PLALA-ADSL:/sys/arch/i386/compile/ORATOSQUILLA i386
Architecture: i386
Machine: i386
>Description:
make(1) doesn't fail/warn even if a conditional context has two .else,
where the second .else is senseless. I think it'd be better make(1)
reports such a situation as an error.
>How-To-Repeat:
% cat x.mk
.if defined(X)
.else
.else
.endif
all:
date
% make -f x.mk
date
Sat Feb 14 16:39:19 JST 2004
% echo $?
0
>Fix:
N/A
>Release-Note:
>Audit-Trail:
>Unformatted: