mesa: automake: distclean git_sha1.h when building OOT
authorEmil Velikov <emil.velikov@collabora.com>
Mon, 6 Jun 2016 18:39:40 +0000 (19:39 +0100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Tue, 7 Jun 2016 11:30:23 +0000 (12:30 +0100)
commitb7f7ec78435771ab02f7d9a61bb1d4a11df720b8
treeef097c56438bad397f4bd3a4b70cf0b7916a0585
parent2c424e00c3995a6a88f4db0c5dc9fd03ea749ebd
mesa: automake: distclean git_sha1.h when building OOT

In the case of out-of-tree (OOT) builds, in particular when building
from tarball, we'll end up with the file in both srcdir and builddir.

We want the former to remain intact (since we need it on rebuild) while
the latter should be removed otherwise `make distclean' gets angry at
us.

Ideally there'll be a solution that feels a bit less of a hack. Until
then this does the job exactly as expected.

Cc: <mesa-stable@lists.freedesktop.org>
Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
src/Makefile.am