Separator in Makefile?


all: $(LIBRARY) $(EXE)

$(MAKEMAKE):
        @rm -f $(MAKEMAKE)
        $(PURIFY) $(CXX) -M  $(INCLUDE) $(CPPFLAGS) *.cpp > $(MAKEMAKE)

$(EXE): $(OBJS) $(LIBRARY)
        @echo "Creating a executable "
        $(PURIFY) $(CC) -o $(EXE) $(OBJS) $(ALLLDFLAGS) $(LIBS)

This is a snippet from a Makefile, when i run this i get the error of line "@rm -f $(MAKEMAKE)" needing a separator. I'm not sure what's wrong. Please help.

You are sure the whitespace preceding that line (@rm ...) are real tabs, without any space characters or the like?

That was the problem. Thank you for your reply. :slight_smile: