Andre Majorel kirjoitti: > On 2009-01-19 09:35 +0200, Karri Kaksonen wrote: > > >> /MegaPak/Makefile: >> all: >> "$(MAKE)" -C resident; >> "$(MAKE)" -C intro; >> > > What is the final semicolon for ? > > >> # Rule for making a *.o file out of a *.c file >> %.o: %.c >> $(CC) $(CFLAGS) $(SEGMENTS) -o $(patsubst %c, %s, $(notdir $<)) $< >> $(AS) -o $@ $(AFLAGS) $(*).s >> $(RM) $*.s >> > > To the OP : in a makefile, commands are supposed to be preceded by > a tab, not three (or even eight) spaces. Whatever flavour of make > Karri uses may accept spaces but you can't count on that as that > is not standard make syntax. > > For reference, the standard : > > http://www.opengroup.org/onlinepubs/009695399/utilities/make.html > > Obviously there are flaws in my Makefile syntax. I was using the semicolons with some multiple operations stuff and forgot them there. The tabs/spaces is something I have not thought about. It should be one tab of course. -- Karri ---------------------------------------------------------------------- To unsubscribe from the list send mail to majordomo@musoftware.de with the string "unsubscribe cc65" in the body(!) of the mail.Received on Mon Jan 19 09:47:10 2009
This archive was generated by hypermail 2.1.8 : 2009-01-19 09:47:12 CET