glsl2: Fix dependencies. (at least partially)
authorEric Anholt <eric@anholt.net>
Fri, 25 Jun 2010 19:23:20 +0000 (12:23 -0700)
committerEric Anholt <eric@anholt.net>
Fri, 25 Jun 2010 19:23:20 +0000 (12:23 -0700)
src/glsl/Makefile

index 91e4d2e05dd352b57bc9f0e818ab63d1bb0b955c..f4e32b918572f60b8cc9e6f722f9e8ba2d047c1f 100644 (file)
@@ -77,6 +77,11 @@ INCLUDES = \
        -I../mesa/shader \
        $(LIBRARY_INCLUDES)
 
+ALL_SOURCES = \
+       $(C_SOURCES) \
+       $(CXX_SOURCES) \
+       $(GLSL2_CXX_SOURCES) \
+       $(GLSL2_C_SOURCES)
 
 ##### TARGETS #####
 
@@ -85,10 +90,10 @@ default: depend lib$(LIBNAME).a $(APPS)
 lib$(LIBNAME).a: $(OBJECTS) Makefile $(TOP)/src/glsl/Makefile.template
        $(MKLIB) -cplusplus -o $(LIBNAME) -static $(OBJECTS)
 
-depend: $(CXX_SOURCES) $(GLSL2_CXX_SOURCES) $(GLSL2_C_SOURCES)
+depend: $(ALL_SOURCES) Makefile
        rm -f depend
        touch depend
-       $(MKDEP) $(MKDEP_OPTIONS) $(INCLUDES) $@ 2> /dev/null
+       $(MKDEP) $(MKDEP_OPTIONS) $(INCLUDES) $(ALL_SOURCES) 2> /dev/null
 
 # Remove .o and backup files
 clean: