etmc/tmLQCD — pull request #58 by kostrzewa (2012-01-30 14:22:38+00:00)
Title: Smarter implementation of the dependency building procedure for invert and hmc_tm.

Because git_hash.h is generated at compile-time, it might not exist when the "dep"
target is built. Simply adding it as a dependency there does not work.
Adding it as a dependency in Makefile.global works, but done naively this results in
an infinte loop because git_hash.h has a phony target which creates it.
The workaround is to see whether git_hash.h exists or not in Makefile.global and
have two different lists of dependencies for building invert.d or hmc_tm.d.

This does revert the previous commit so it has a bit of a confusing history but I really hope that this fixes all issues brought about by introducing git-version-gen.