build: Only regenerate src/git-version.h when .git/logs/HEAD changes
authorKristian Høgsberg <krh@bitplanet.net>
Sat, 1 Feb 2014 00:33:48 +0000 (16:33 -0800)
committerKristian Høgsberg <krh@bitplanet.net>
Sat, 1 Feb 2014 09:05:35 +0000 (01:05 -0800)
commit0aa19e9457ce3258a4df74876e542f0b6fbbf2ba
tree0f4a30ec84d03dacf53db510488d4ff98fd75b49
parent0987f81ee9d3ae5a2ec183bfb9c3ba3dd3bbb4a7
build: Only regenerate src/git-version.h when .git/logs/HEAD changes

We rely on .git/logs/HEAD to be a file that changes when we commit to HEAD.
The first idea is to make the makefile rule depend on .git/HEAD, but that's
a symbolic ref that points to the current ref in refs/heads.  However,
.git/logs/HEAD changes whenever we commit to HEAD, so we can use that in the
makefile rule.
Makefile.am
configure.ac