Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 10 Jun 1995 21:22:56 +0400 (MSD)
From:      =?KOI8-R?Q?=E1=CE=C4=D2=C5=CA?= =?KOI8-R?Q?=FE=C5=D2=CE=CF=D7?= aka "Andrey A. Chernov, Black Mage" <ache@astral.msk.su>
To:        "Rodney W. Grimes" <rgrimes@gndrsh.aac.dev.com>, Robert Shady <rls@hades.id.net>
Cc:        bugs@FreeBSD.org, mal@algonet.se
Subject:   Re: make doesn't like lines with a tab only
Message-ID:  <yTmJTsl8S5@astral.msk.su>
In-Reply-To: <199506092055.QAA00886@hades.id.net>; from Robert Shady at Fri, 9 Jun 1995 16:55:36 -0400 (EDT)
References:  <199506092055.QAA00886@hades.id.net>

next in thread | previous in thread | raw e-mail | index | archive | help
-----BEGIN PGP SIGNED MESSAGE-----

In message <199506092055.QAA00886@hades.id.net> Robert Shady writes:

>> > the following "Makefile"
>> > --SNIP--
>> > foo: bar
>> > <TAB>xyzzy -o foo bar
>> > <TAB>
>> > --SNIP--
>> >
>> > results in:
>> > "Makefile", line 3: Need an operator
>> > Fatal errors encountered -- cannot continue
>>
>> The only bug here is that your makefile is arguably wrong.  A tab indicates
>> there is to be a command in this location, you have provided no command.
>>
>> Many other makes ignore this arguably erronous line.  I belive POSIX says
>> this shall cause an error.

>That may be what POSIX says it should cause, but in real life it causes
>alot of headaches.  Maybe a command line switch to ignore it would be in
>order?  Defaulting, of course, to POSIX.

POSIX says that anything after <TAB> must be passed to shell exactly.
It says nothing about error here.
So, simple <TAB> it is equal to
	sh -c ""
Normal make must skip such lines. F.e. GNU makes which claims
itself as POSIX-conformant don't produce error here.

BSD make isn't POSIX make, differences are too big, but even in this
case as long time tradition of BSD make such lines was accepted without
error. As I notice, this nitpicking change (producing error)
cause too many ports Makefiles to be converted.

I vote for removing this superflows checking.

- --
Andrey A. Chernov        : And I rest so composedly,  /Now, in my bed,
ache@astral.msk.su       : That any beholder  /Might fancy me dead -
FidoNet: 2:5020/230.3    : Might start at beholding me,  /Thinking me dead.
RELCOM Team,FreeBSD Team :         E.A.Poe         From "For Annie" 1849

-----BEGIN PGP SIGNATURE-----
Version: 2.6.2i

iQCVAwUBL9nU7eJgpPLZnQjrAQFDngP/feV/mNAm1KrhtoYNoCiKI+aQDeSDHfxk
d2+2dMiJorC/euU6j6wm2XrR0ewhdEnAMqv93jCDdj8mG5ZkIK+osrlW6U8YnLkR
X17awCPi5jxPYCN0Ya2Xl71nDEV0Bgo/gK6z4Sis1fNs2nThLOwJZZodKekr16m+
PMAopdUTLP4=
=mQNk
-----END PGP SIGNATURE-----



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?yTmJTsl8S5>