Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 9 Jun 1995 16:18:52 -0700 (PDT)
From:      "Rodney W. Grimes" <rgrimes@gndrsh.aac.dev.com>
To:        ache@astral.msk.su (=?KOI8-R?Q?=E1=CE=C4=D2=C5=CA?= =?KOI8-R?Q?=FE=C5=D2=CE=CF=D7?=)
Cc:        rls@hades.id.net, bugs@FreeBSD.org, mal@algonet.se
Subject:   Re: make doesn't like lines with a tab only
Message-ID:  <199506092318.QAA06627@gndrsh.aac.dev.com>
In-Reply-To: <yTmJTsl8S5@astral.msk.su> from "=?KOI8-R?Q?=E1=CE=C4=D2=C5=CA?= =?KOI8-R?Q?=FE=C5=D2=CE=CF=D7?=" at Jun 10, 95 09:22:56 pm

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.
> 

You should have said something 3 months ago when the change was made,
not now!!!  And don't ``vote'' when no vote has been called for!!!


-- 
Rod Grimes                                      rgrimes@gndrsh.aac.dev.com
Accurate Automation Company                   Custom computers for FreeBSD



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