mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-21 14:10:37 +02:00
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>
(cherry picked from commit b7f7ec7843)
This commit is contained in:
parent
998e503592
commit
bcfda0a1fe
1 changed files with 6 additions and 0 deletions
|
|
@ -46,6 +46,12 @@ git_sha1.h: git_sha1.h.tmp
|
|||
|
||||
BUILT_SOURCES = git_sha1.h
|
||||
|
||||
# We want to keep the srcdir file since we need it on rebuild from tarball.
|
||||
# At the same time `make distclean' gets angry at us if we don't cleanup the
|
||||
# builddir one.
|
||||
distclean-local:
|
||||
test $(top_srcdir) != $(top_builddir) && rm $(builddir)/git_sha1.h
|
||||
|
||||
SUBDIRS = . gtest util mapi/glapi/gen mapi
|
||||
|
||||
# include only conditionally ?
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue