www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/01/07/09:45:40

From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: makefile!!!! please HELP!!!
Date: Fri, 07 Jan 2000 11:55:15 +0200
Organization: NetVision Israel
Lines: 35
Message-ID: <3875B803.EC05DFBC@is.elta.co.il>
References: <852fmg01a55 AT enews3 DOT newsguy DOT com> <3874f766 DOT 1660909 AT news DOT netcologne DOT de> <saad4.627$CJ1 DOT 21802 AT dfiatx1-snr1 DOT gtei DOT net>
NNTP-Posting-Host: ras1-p62.rvt.netvision.net.il
Mime-Version: 1.0
X-Trace: news.netvision.net.il 947238999 27554 62.0.172.64 (7 Jan 2000 09:56:39 GMT)
X-Complaints-To: abuse AT netvision DOT net DOT il
NNTP-Posting-Date: 7 Jan 2000 09:56:39 GMT
X-Mailer: Mozilla 4.7 [en] (Win98; I)
X-Accept-Language: en,ru,hebrew
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Damian Yerrick wrote:
> 
> "Peter Karp" <karpfenteich AT gmx DOT de> wrote:
> >
> > Note that there's a space after and before the :
> > In the second line you have to start with a TAB;
> > spaces will give you an error message.
> 
> This is a "known issue" in GNU make. Will this be fixed?
> Or is there a good reason for make not to support spaces?

This won't be ``fixed'', because there are at least two good reasons for such
behavior:

  1) The Posix standard requires the leading TAB.
  2) Lots of Makefiles out there rely on that feature, and will be instantly
broken if it is changed.  For example, take a look at the Makefiles in the X
distribution.  You will see lots of stuff like this:

                   foo = FOO
                foobar = FOOBAR
             foobarbaz = FOOBARBAZ

etc., you get the idea.  These are all variable assignments, which someone
aligned on the equals sign, presumablyly for beauty.  If the leading blanks were
to be interpreted as a beginning of a command, all these Makefiles would be
broken.

The latest release of GNU Make v3.78.1 adds a helpful hint to the usual "missing
separator" message by mentioning the possibility of TAB being replaced by 8
spaces.  (There's no precompiled DJGPP binary of this version, but people who
cannot wait can download the distribution from the GNU FTP sites which supports
DJGPP out of the box.)

This is all in the FAQ, btw (section 22.17).

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019