From: Eli Zaretskii 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> NNTP-Posting-Host: ras1-p62.rvt.netvision.net.il Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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" 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).