From: Arkadiusz Miskiewicz Date: Sat, 26 Feb 2011 18:26:09 +0000 (-0800) Subject: glsl/Makefile: Remove builtin_function.cpp if generation fails. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=99b9019716d0a5cfc7438677d2e11090d676c054;p=mesa.git glsl/Makefile: Remove builtin_function.cpp if generation fails. Fixes bug #34346. Signed-off-by: Kenneth Graunke --- diff --git a/src/glsl/Makefile b/src/glsl/Makefile index 876f0dfc2a5..df031d2d548 100644 --- a/src/glsl/Makefile +++ b/src/glsl/Makefile @@ -208,6 +208,6 @@ builtin_compiler: $(GLSL2_OBJECTS) $(OBJECTS) builtin_stubs.o builtin_function.cpp: builtins/profiles/* builtins/ir/* builtins/tools/generate_builtins.py builtins/tools/texture_builtins.py builtin_compiler @echo Regenerating builtin_function.cpp... - $(PYTHON2) $(PYTHON_FLAGS) builtins/tools/generate_builtins.py ./builtin_compiler > builtin_function.cpp + $(PYTHON2) $(PYTHON_FLAGS) builtins/tools/generate_builtins.py ./builtin_compiler > builtin_function.cpp || rm -f builtin_function.cpp -include depend