Re: makefiles

From: Chris Herringshaw (Chris.Herringshaw@med.umich.edu)
Date: 11/22/94


Actually, you need to have a tab before the executable statements
in the makefile.  IE -

file.o: file.c file.h
<TAB>	gcc -g -Wall file.c

The tab before the command tells makefile to execute the line
in building the object file.

====================================================================
Christopher Herringshaw     Networking and Special Projects Division
Medical Center Information Technology (MCIT)   xxviper@med.umich.edu
University of Michigan Medical Center, B1911 CFOB
1414 Catherine Street, Ann Arbor, MI 48109-0704       (313) 747-2778
====================================================================

On Mon, 21 Nov 1994, Mathue Moyer wrote:

> >
> >Hi, I am unable to compile the MUD due to problems with the makefile.
> >	Everytime I run the make file I get:
> >
> >	Must be a separator on rules line 45. Stop.
> >
> >	I checked line 45 (I even deleted the original line 45...and all the
> >relateded makes for the utilities, but it give me the same error).  There
> >should be nothing wrong with it.  Line 45 in my makefile is:
> >
> >Line 45:	clean:
> >Line 46:	      rm -f *.o
> >
> >	Why is this happening?  I changed the make file, but all I added
> >were olc-wld.o and llist.o to the OBJFILES list.  I also added the proper
> >rules for compiling olc-wld.c and llist.c
> >
> >	I appreciate any help that anyone could offer,
> >
> >	- Sean Mountcastle
> 
> Just a hunch... but try putting a <tab> after the  clean:
> I suspect that will solve your problem.
> 
> -- 
> -Mathue Moyer
> -mathue@ucsd.edu
> 
> 



This archive was generated by hypermail 2b30 : 12/07/00 PST