automake: bring back the .PHONY git_sha1.h.tmp rule
authorEmil Velikov <emil.velikov@collabora.com>
Tue, 31 May 2016 13:46:19 +0000 (14:46 +0100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Thu, 2 Jun 2016 21:23:12 +0000 (22:23 +0100)
commitaf2637aa32aac1ef512433407385e8e2bf711aea
treed0e7361e4e03bb5d67a6ffa9ee80402964972804
parentf74a29188ce534a333992f3a88165af16fd01b98
automake: bring back the .PHONY git_sha1.h.tmp rule

With earlier commit 3689ef32afd ("automake: rework the git_sha1.h rule,
include in tarball") we/I erroneously removed the PHONY rule and the
temporary file.

The former is used to ensure that the header is regenerated when on each
make invocation, while the latter helps us avoid the unneeded rebuild(s)
when the SHA1 hasn't changed.

Reported-by: Grazvydas Ignotas <notasas@gmail.com>
Tested-by: Grazvydas Ignotas <notasas@gmail.com>
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
src/Makefile.am