Date: Thu, 21 Mar 1996 08:21:06 -0800 (PST) From: asami@cs.berkeley.edu To: FreeBSD-gnats-submit@freebsd.org Cc: asami@silvia.HIP.Berkeley.EDU Subject: bin/1095: make's continuation line handling buggy when used with .elif Message-ID: <199603211621.IAA07041@silvia.HIP.Berkeley.EDU> Resent-Message-ID: <199603211630.IAA19288@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 1095 >Category: bin >Synopsis: make's continuation line handling buggy when used with .elif >Confidential: no >Severity: serious >Priority: high >Responsible: freebsd-bugs >State: open >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Mar 21 08:30:02 PST 1996 >Last-Modified: >Originator: Satoshi Asami >Organization: The awesome FreeBSD ports team >Release: FreeBSD 2.2-CURRENT i386 >Environment: FreeBSD-current >Description: /usr/bin/make can't handle the continuation line correctly when \ is used to break a long .elif line into two. >How-To-Repeat: bash$ cat Makefile1 all: .if defined(foo) @true .elif !defined(foo) && !defined(foo) @echo ok .else @echo not ok .endif bash$ make -f Makefile1 ok bash$ cat Makefile2 all: .if defined(foo) @true .else .if !defined(foo) && \ !defined(foo) @echo ok .else @echo not ok .endif .endif bash$ make -f Makefile2 ok bash$ cat Makefile3 all: .if defined(foo) @true .elif !defined(foo) && \ !defined(foo) @echo ok .else @echo not ok .endif bash$ make -f Makefile3 not ok <<<<<<<============ bash$ >Fix: No idea. >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199603211621.IAA07041>