delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1995/11/20/11:41:36

Date: Mon, 20 Nov 1995 08:20:59 -0500
From: kagel AT quasar DOT bloomberg DOT com
To: F655167 AT cicei DOT ulpgc DOT es
Cc: djgpp AT sun DOT soe DOT clarkson DOT edu
Subject: Re: Make question
Reply-To: kagel AT ts1 DOT bloomberg DOT com

   From: "Pedro J. Santana Aleman" <F655167 AT cicei DOT ulpgc DOT es>
   Date:          Mon, 20 Nov 1995 08:32:41 GMT

   An stupid question.
   when I make this makefile:
   _____________
   reorde.exe : ordalf.o reord.o
	     gcc -o reorde ordalf.o reord.o 
	     coff2exe reorde
   ordalf.o : ordalf.c
	   gcc -c ordalf.c
   reord.o : reord.c
	   gcc -c reord.c
   _______________
   The program says:
      makefile:2: *** missing separator

   What is the trouble?
   When I use make with the samples I have not problems.(e.g. pagetest)

It looks like your editor is inserting spaces rather than tabs in the lines of
commands.  This may not have given you trouble before as many DOS make programs
accept spaces, however, UNIX makes, and GNU make, do not.  Make certain your
makefiles look like the folowing where <TAB> is the tab character (0x09):


reorde.exe : ordalf.o reord.o
<TAB>gcc -o reorde ordalf.o reord.o 
<TAB>coff2exe reorde
ordalf.o : ordalf.c
<TAB>gcc -c ordalf.c
reord.o : reord.c
<TAB>gcc -c reord.c
   _______________

-- 
Art S. Kagel, kagel AT ts1 DOT bloomberg DOT com

Variety is the soul of pleasure.  --  Aphra Behn

- Raw text -


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