title: What's wrong with this Makefile?
body: <p>When I run make all on the following Makefile I get this error:</p>
  
  <p>Makefile:5: *** missing separator.  Stop.</p>
  
  <p>What's wrong with it and how do I fix it?</p>
  
  <pre><code>LEX = lex
  YACC = yacc 
  CC = gcc
  calcu: y.tab.o lex.yy.o
  $(CC) -o calcu y.tab.o lex.yy.o -ly -lfl
  y.tab.c y.tab.h: parser.y
  $(YACC) -d parser.y
  y.tab.o: y.tab.c parser.h
  $(CC) -c y.tab.c
  lex.yy.o: y.tab.h lex.yy.c 
  $(CC) -c lex.yy.c
  lex.yy.c: calclexer.l parser.h
  $(LEX) calclexer.l
  clean:
  rm *.o
  rm *.c
  rm calcu
  </code></pre>