Don't touch version.gen if nothing version-related changed
authorManuel Nickschas <sputnick@quassel-irc.org>
Mon, 1 Feb 2010 22:16:05 +0000 (23:16 +0100)
committerManuel Nickschas <sputnick@quassel-irc.org>
Mon, 1 Feb 2010 22:16:05 +0000 (23:16 +0100)
commitf8a3a06fef833858bd93f8441d56a29b82d9bade
tree93c7d1f2c32e895393a37e351d6645c8093e99de
parent4cf785c4798c5a3b83711d8a54cb2ae1bb09b824
Don't touch version.gen if nothing version-related changed

This avoids unnecessarily recompiling main.cpp (and hence relinking all three binaries) twice
with every make. Funnily enough, even though we've had genversion misbehaving for several years,
I never before thought about simply comparing the old with the new contents prior to touching
the file.

Thanks to MisterN for poking me and making me think about a solution :)
src/common/genversion.cpp