mesa: fix parser source gen for out-of-tree builds
authorDylan Noblesmith <nobled@dreamwidth.org>
Thu, 28 Jun 2012 20:28:13 +0000 (20:28 +0000)
committerDylan Noblesmith <nobled@dreamwidth.org>
Mon, 2 Jul 2012 15:14:39 +0000 (15:14 +0000)
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/Makefile.am

index 44ec619cda83e85710aa10b3616f9a51148e7f10..5736c5d574539edbd17aa5a4c0613e08300f504a 100644 (file)
@@ -86,9 +86,11 @@ main/api_exec_es2.c: main/APIspec.xml main/es_generator.py main/APIspecutil.py m
          -S $(srcdir)/main/APIspec.xml -V GLES2.0 > $@
 
 program/program_parse.tab.c program/program_parse.tab.h: program/program_parse.y
+       mkdir -p program
        $(YACC) -v -d --output=program/program_parse.tab.c $<
 
 program/lex.yy.c: program/program_lexer.l
+       mkdir -p program
        $(LEX) --never-interactive --outfile=$@ $<
 
 all-local: