0

Say I have the following in the GNUmakefile

ifeq ($(MODELS), abc)
  @echo PASS  <== line 45
endif

How come I keep on getting the following error?

GNUmakefile:45: * missing separator. Stop.

Pls note, the echo works fine if it is NOT in the ifeq clause

user2167013
  • 359
  • 1
  • 3
  • 14
  • Is that inside of a target body? Because it isn't legal outside of one. If it is inside a target body then you likely just need to indent it with a tab instead of spaces. – Etan Reisner Jul 02 '14 at 20:13
  • possible duplicate of [Make error: missing separator](http://stackoverflow.com/questions/920413/make-error-missing-separator) – Etan Reisner Jul 02 '14 at 20:14

1 Answers1

0

ah I know why. You need to make sure there is NO space/TAB before "ifeq", "endif" and NO space before the $echo.For the echo line, it can only be TABs. Why do GNUmakefile is so picky on spaces/tabs, these invisible rules are really not institutive.

user2167013
  • 359
  • 1
  • 3
  • 14