summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorArkadiusz Miskiewicz <[email protected]>2011-02-26 10:26:09 -0800
committerKenneth Graunke <[email protected]>2011-02-26 10:28:00 -0800
commit99b9019716d0a5cfc7438677d2e11090d676c054 (patch)
tree7ce1808966c32524121e51739756eefeda115851 /src
parent052122a8cd759e8749fee3412bae5d905ee0d965 (diff)
glsl/Makefile: Remove builtin_function.cpp if generation fails.
Fixes bug #34346. Signed-off-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/glsl/Makefile2
1 files changed, 1 insertions, 1 deletions
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