From: kagel AT quasar DOT bloomberg DOT com Date: Tue, 26 Mar 1996 11:58:33 -0500 Message-Id: <9603261658.AA22150@quasar.bloomberg.com > To: j DOT aldrich6 AT genie DOT com Cc: djgpp AT delorie DOT com In-Reply-To: <199603260651.AA138613107@relay1.geis.com> (j.aldrich6@genie.com) Subject: Re: XMODEM File: MAKE.OUT Reply-To: kagel AT dg1 DOT bloomberg DOT com Errors-To: postmaster AT ns1 From: j DOT aldrich6 AT genie DOT com Date: Tue, 26 Mar 96 06:45:00 UTC 0000 X-Genie-Qk-From: J.ALDRICH6 X-Genie-Qk-Id: 5020377 X-Genie-Gateway-Id: 203116 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii Content-Length: 1301 I feel very stupid, but I have been having this problem with a makefile I am trying to write that makes absolutely no sense whatsoever. Whenever I run make on the makefile, it gives the following error, no matter what arguments I pass: makefile:10: *** missing separator. Stop. I know that the makefile isn't perfected, but I was hoping to get a more specific error message than this. I have tried numerous revisions to get rid of it, but it just keeps popping up. A search of the info file for make turns up no reference to the word 'separator' anywhere. Here's the makefile. All I want to know is why that particular error is happening. --- cut here --- CC = gcc C_FLAGS = -Wall -g -O TARGETS := $(wildcard lab*. proj*. lab*.exe proj*.exe) .PHONY: all all: $(TARGETS) ; $(TARGETS): %.c pr_echo.o $(CC) $(C_FLAGS) -o $(*).exe $< pr_echo.o -lpc >>>^^^^^^^^ @-del $(*).o >>>^^^^^^^^ Make certain that this spacing is a character not spaces pr_echo.o: pr_echo.c $(CC) $(C_FLAGS) -c pr_echo.c >>>^^^^^^^^ Make certain that this spacing is a character not spaces --- end --- GNU make, like all UNIX makes is sensitive to target commands beginning with tabs. Some DOS based makes were more forgiving. Makgin certain that all commands begin with a tab should solve this problem. -- Art S. Kagel, kagel AT dg1 DOT bloomberg DOT com A proverb is no proverb to you 'till life has illustrated it. -- John Keats