Integrate generate_builtins.pl into the build process.
authorKenneth Graunke <kenneth@whitecape.org>
Mon, 3 May 2010 21:39:03 +0000 (14:39 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Fri, 14 May 2010 23:34:46 +0000 (16:34 -0700)
make will now regenerate builtin_function.cpp whenever you
change/add/remove files in the builtins/* folders.

Makefile.am

index 8f2f3fa632ed7606e8157fc2606fc60f91a66b6a..105fcc5d28f2703690390fe50c41f6caeeaaf9ba 100644 (file)
@@ -51,6 +51,8 @@ glsl_SOURCES = \
 BUILT_SOURCES = glsl_parser.h glsl_parser.cpp glsl_lexer.cpp
 CLEANFILES = $(BUILT_SOURCES)
 
+builtin_function.cpp: builtins/*/*
+       ./builtins/tools/generate_builtins.pl > builtin_function.cpp
 glsl_parser.h: glsl_parser.cpp
 
 .lpp.cpp: