mesa: Build git_sha1.h before computing dependencies.
authorEric Anholt <eric@anholt.net>
Tue, 12 Jun 2012 01:46:51 +0000 (18:46 -0700)
committerEric Anholt <eric@anholt.net>
Tue, 12 Jun 2012 15:10:41 +0000 (08:10 -0700)
Otherwise, version.c doesn't get a dependency on it in a clean build,
and then it doesn't necessarily get generated before version.c is
compiled.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=50976
Reviewed-by: Jakob Bornecrantz jakob@vmware.com
src/mesa/Makefile

index 845b524e6c58a5683d49081e82e5d5082b5d25fd..b0b461fddfc9445ba5d04fa0592862762bc58a2c 100644 (file)
@@ -135,7 +135,7 @@ asm_subdirs:
 ######################################################################
 # Dependency generation
 
-depend: $(ALL_FILES)
+depend: $(ALL_FILES) main/git_sha1.h
        @ echo "running $(MKDEP)"
        @ touch depend
        @$(MKDEP) $(MKDEP_OPTIONS) $(MESA_CPPFLAGS) \