build: Fix out-of-tree generation of builtin_function.cpp
authorMatt Turner <mattst88@gmail.com>
Wed, 1 Aug 2012 21:09:22 +0000 (14:09 -0700)
committerMatt Turner <mattst88@gmail.com>
Tue, 14 Aug 2012 17:54:39 +0000 (10:54 -0700)
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/glsl/Makefile.am

index 0ab6672114de71ffedcab5e7bc9cfc83e0907386..20639c93d2343f5d23ef2090c7822036550af21c 100644 (file)
@@ -92,8 +92,8 @@ glsl_parser.cc glsl_parser.h: glsl_parser.yy
 BUILT_SOURCES = glsl_parser.h builtin_function.cpp
 CLEANFILES = glsl_lexer.cc glsl_parser.cc $(BUILT_SOURCES)
 
-builtin_function.cpp: builtins/profiles/* builtins/ir/* builtins/glsl/* builtins/tools/generate_builtins.py builtins/tools/texture_builtins.py builtin_compiler$(EXEEXT)
-       $(AM_V_GEN) $(PYTHON2) $(PYTHON_FLAGS) builtins/tools/generate_builtins.py ./builtin_compiler > builtin_function.cpp || rm -f builtin_function.cpp
+builtin_function.cpp: $(srcdir)/builtins/profiles/* $(srcdir)/builtins/ir/* $(srcdir)/builtins/glsl/* $(srcdir)/builtins/tools/generate_builtins.py $(srcdir)/builtins/tools/texture_builtins.py builtin_compiler$(EXEEXT)
+       $(AM_V_GEN) $(PYTHON2) $(PYTHON_FLAGS) $(srcdir)/builtins/tools/generate_builtins.py ./builtin_compiler > builtin_function.cpp || rm -f builtin_function.cpp
 
 glcpp/libglcpp.la:
        cd glcpp ; $(MAKE) $(AM_MAKEFLAGS)