delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/10/19/13:01:29

Message-Id: <199910191531.SAA31287@ankara.Foo.COM>
From: "S. M. Halloran" <mitch AT duzen DOT com DOT tr>
Organization: User RFC 822- and 1123-compliant
To: djgpp AT delorie DOT com
Date: Tue, 19 Oct 1999 19:38:35 +0200
MIME-Version: 1.0
Subject: Re: Problem with MAKE
In-reply-to: <380C6414.B4ABD4BC@inf.tu-dresden.de>
X-mailer: Pegasus Mail for Win32 (v3.12)
Reply-To: djgpp AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On 19 Oct 99, Markus Kramer was found to have commented thusly:

> Perhaps, you might think, that this is a stupid question.
> But, does anybody of you have also problems with MAKE?
> 
> I got the sources of "lsck073" and tried to compile the demo programs.
> First, it functioned, but after having edited the Makefile, I got an error,
> such as:
> 
> "Line 32: *** Missing seperator."

Really?  Some people think spelling errors aren't true bugs, but I beg to 
differ. ;-)

> What does it mean? I didn't change anything in line 32.

You deleted a tab character in the command line of a make rule.  This is a make 
utility subtlety.  I advise you to read (and to get, if you don't have) the 
documentation for make by Stallman & McGrath, then look for the heading "An 
Introduction to Makefiles" subheading 'What a Rule Looks Like'.

> I still must say, that I used the MS-DOS editor to change the file.
> Does this editor inserts any control codes, which MAKE doesn't understand?

No, it actually deletes them, converting tabs (control character 'I') to 
spaces, I believe.

You can go to first column of the command in the make rule, and press
Ctrl-P Ctrl-I in sequence.  I believe just pressing 'TAB' will achieve the same 
effect.  You need to have all commands of a rule leading with at least one tab 
character.

Others may warn you to use a "real" editor when doing anything, let alone 
editing makefiles.

> Thanks for your help.
> 
> Sincerely, Markus.
> 
> P.S.: Sorry for my bad English. :)



Mitch Halloran
Research (Bio)chemist
Duzen Laboratories Group
Ankara       TURKEY

- Raw text -


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