delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/05/09/14:30:33

From: "John M. Aldrich" <fighteer AT cs DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Bad makefile
Date: Sat, 09 May 1998 14:16:13 -0400
Organization: Two pounds of chaos and a pinch of salt.
Lines: 29
Message-ID: <35549D6D.2C14@cs.com>
References: <067E9C4CA4749CFA DOT B60201B6EDD03678 DOT 4E7699120187A3E9 AT library-proxy DOT airnews DOT net>
NNTP-Posting-Host: ppp112.cs.net
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Alex Weekley wrote:
> 
> Can anyone please tell me what is wrong with this makefile? One minute
> it was working fine and now I always get missing separator. I've even
> tried writing a new one but the same thing always happens. Arrgh! I hate
> make!

That always happens when your editor uses spaces instead of tabs on
lines containing commands.  GNU Make requires that commands be prefixed
with real tabs.  Depending on the editor you use, there is usually a way
to make it use real tabs instead of spaces:  in DOS Edit, the
Ctrl-P,Ctrl-I combination has been known to work; Win95 Notepad uses
real tabs; GNU Emacs uses tabs in Makefile mode, and RHIDE can be set to
use real tabs.

Make is an extremely powerful and versatile tool.  It just takes a
little time to get used to it.  :-)

-- 
John M. Aldrich <fighteer AT cs DOT com> - ICQ UIN# 7406319

* Anything that happens, happens.
* Anything that, in happening, causes something else to happen,
  causes something else to happen.
* Anything that, in happening, causes itself to happen again, happens
  again.
* It doesn't necessarily do it in chronological order, though.
 
                                       --- Douglas Adams

- Raw text -


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