glsl: Ensure glsl/ exists before making the lexer/parser.
authorMatt Turner <mattst88@gmail.com>
Wed, 3 Feb 2016 20:03:13 +0000 (12:03 -0800)
committerMatt Turner <mattst88@gmail.com>
Thu, 4 Feb 2016 17:31:17 +0000 (09:31 -0800)
Reported-by: Jan Ziak <0xe2.0x9a.0x9b@gmail.com>
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=93989

src/compiler/Makefile.am

index 0bc8e48efa64c35e8c71fb4c9e75250c89dafc67..f218af1b40527453dbc96896793b46f4d7f57d55 100644 (file)
@@ -211,9 +211,11 @@ YACC_GEN = $(AM_V_YACC)$(YACC) $(YFLAGS)
 LEX_GEN = $(AM_V_LEX)$(LEX) $(LFLAGS)
 
 glsl/glsl_parser.cpp glsl/glsl_parser.h: glsl/glsl_parser.yy
+       $(MKDIR_GEN)
        $(YACC_GEN) -o $@ -p "_mesa_glsl_" --defines=$(builddir)/glsl/glsl_parser.h $(srcdir)/glsl/glsl_parser.yy
 
 glsl/glsl_lexer.cpp: glsl/glsl_lexer.ll
+       $(MKDIR_GEN)
        $(LEX_GEN) -o $@ $(srcdir)/glsl/glsl_lexer.ll
 
 glsl/glcpp/glcpp-parse.c glsl/glcpp/glcpp-parse.h: glsl/glcpp/glcpp-parse.y