aboutsummaryrefslogtreecommitdiffstats
path: root/src/compiler
diff options
context:
space:
mode:
authorMatt Turner <[email protected]>2016-02-03 12:03:13 -0800
committerMatt Turner <[email protected]>2016-02-04 09:31:17 -0800
commit973ba3f4d4b73f67568ab2b0b6a4447c40bb9dcf (patch)
tree60afe3fc824b10f890fca019f0e23333efec0143 /src/compiler
parent8c7a42b3e880804e201ee9582a0a73763cdd2a01 (diff)
glsl: Ensure glsl/ exists before making the lexer/parser.
Reported-by: Jan Ziak <[email protected]> Reviewed-by: Tapani Pälli <[email protected]> Reviewed-by: Iago Toral Quiroga <[email protected]> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=93989
Diffstat (limited to 'src/compiler')
-rw-r--r--src/compiler/Makefile.am2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/compiler/Makefile.am b/src/compiler/Makefile.am
index 0bc8e48efa6..f218af1b405 100644
--- a/src/compiler/Makefile.am
+++ b/src/compiler/Makefile.am
@@ -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