Mesa (master): mesa: Build git_sha1.h before computing dependencies.

Eric Anholt anholt at kemper.freedesktop.org
Tue Jun 12 15:11:10 UTC 2012


Module: Mesa
Branch: master
Commit: 7b11051a28731b099dc47df9e5db7eccfa889369
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=7b11051a28731b099dc47df9e5db7eccfa889369

Author: Eric Anholt <eric at anholt.net>
Date:   Mon Jun 11 18:46:51 2012 -0700

mesa: Build git_sha1.h before computing dependencies.

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 at vmware.com

---

 src/mesa/Makefile |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/mesa/Makefile b/src/mesa/Makefile
index 845b524..b0b461f 100644
--- a/src/mesa/Makefile
+++ b/src/mesa/Makefile
@@ -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) \




More information about the mesa-commit mailing list