commit | 0aa19e9457ce3258a4df74876e542f0b6fbbf2ba | [log] [tgz] |
---|---|---|
author | Kristian Høgsberg <krh@bitplanet.net> | Fri Jan 31 16:33:48 2014 -0800 |
committer | Kristian Høgsberg <krh@bitplanet.net> | Sat Feb 01 01:05:35 2014 -0800 |
tree | 0f4a30ec84d03dacf53db510488d4ff98fd75b49 | |
parent | 0987f81ee9d3ae5a2ec183bfb9c3ba3dd3bbb4a7 [diff] |
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.