C Makefile – missing seperator. stop

Makefile requires that all “commands” in a rule are indented by one tab.

You have, for example, this rule:

clean:
$(RM) $(TARGETS) $(OSMLIB) $(OBJ) $(LIBOBJ) *~ *core

That is wrong, the command-line should be intended with an actual tab (not spaces) like

clean:
    $(RM) $(TARGETS) $(OSMLIB) $(OBJ) $(LIBOBJ) *~ *core

Leave a Comment