title: Makefile error using flex
body: <p>Trying to make a makefile that compiles cpp2html.c to produce cpp2html.o (I've done this). Next I have to run flex cppscanner.l to produce the file lex.yy.c from language cppscanner.l. (I've done this). Then I have to compile lex.yy.c to produce lex.yy.o. And finally link the .o files. (Done both)</p>
  
  <pre><code>cpp2html.o: cpp2html.c  
  [TAB] gcc -g -DDEBUG -c cpp2html.c  //produces cpp2html.o
  
  lex.yy.c: cppscanner.l  
  [TAB] flex cppscanner.l -o lex.yy.c  //produces cppscanner language on lex.yy.c
  
  lex.yy.o: lex.yy.c  
  [TAB] gcc -g -c lex.yy.c             //produces lex.yy.o
  
  cpp2html: cpp2html.o lex.yy.o   
  [TAB] gcc -g -DDEBUG cpp2html.o lex.yy.o -o cpp2html //links the .o files
  </code></pre>
  
  <p>The error produced when I run it is "Your makefile does not build 'cpp2html' when invoked: gcc -g -DDEBUG -c cpp2html.c</p>
  
  <p>What am I doing wrong? Thanks in advance</p>