Subject: bin/15618: make ignores ".else if" syntax error
To: None <gnats-bugs@gnats.netbsd.org>
From: None <leo@marco.de>
List: netbsd-bugs
Date: 02/15/2002 11:25:21
>Number:         15618
>Category:       bin
>Synopsis:       make ignores ".else if" syntax error
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Feb 15 02:26:00 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     Matthias Pfaller
>Release:        NetBSD 1.5ZA
>Organization:
Matthias Pfaller                            Software Entwicklung
marco Systemanalyse und Entwicklung GmbH    Tel   +49 8131 5161-41
Hans-Böckler-Str. 2, D 85221 Dachau         Fax   +49 8131 5161-66
http://www.marco.de/                        Email leo@dachau.marco.de
>Environment:
	
	
System: NetBSD lethe 1.5ZA NetBSD 1.5ZA (LETHE) #0: Tue Feb 12 15:09:42 CET 2002 leo@lethe:/usr/src/sys/arch/shark/compile/LETHE shark
Architecture: arm32
Machine: shark
>Description:
	When make sees a ".if/.else if/.else/.endif" sequence it doesn't
	complain.
>How-To-Repeat:
	Try the following (illegal) makefile:

	A=a
	.if ${A} == "b"
	XXX=a
	# This should be '.elif ${A} == "b"'
	.else if ${A} == "b"
	XXX=b
	.else
	XXX=c
	.endif

	x:
		echo ${XXX}

	"make x" will emit "b"...
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: