[Mesa-dev] in tree make distclean failing since mesa: automake: distclean git_sha1.h when building OOT
Andy Furniss
adf.lists at gmail.com
Wed Jun 8 13:47:09 UTC 2016
In tree build make distclean is failing for me since -
b7f7ec78435771ab02f7d9a61bb1d4a11df720b8 is the first bad commit
commit b7f7ec78435771ab02f7d9a61bb1d4a11df720b8
Author: Emil Velikov <emil.velikov at collabora.com>
Date: Mon Jun 6 19:39:40 2016 +0100
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.
I usually clean with make distclean then git clean -dfx and did use the
latter during bisect.
./autogen.sh --prefix=/usr --sysconfdir=/etc --enable-texture-float
--enable-opencl --enable-omx --with-egl-platforms=x11,drm,wayland
--with-gallium-drivers=radeonsi,swrast --enable-gbm
--enable-shared-glapi --enable-glx-tls --with-dri-drivers= && make -j5
.....
make distclean
Making distclean in src
make[1]: Entering directory '/mnt/sdb1/Gits/mesa/src'
Making distclean in .
make[2]: Entering directory '/mnt/sdb1/Gits/mesa/src'
rm -rf .libs _libs
rm -rf mesa/main/.libs mesa/main/_libs
rm -rf mesa/program/.libs mesa/program/_libs
test -z "libglsl_util.la" || rm -f libglsl_util.la
rm -f ./so_locations
rm -f *.o
rm -f mesa/main/*.o
rm -f mesa/main/*.lo
rm -f mesa/program/*.o
rm -f mesa/program/*.lo
rm -f *.lo
rm -f *.tab.c
test -z "" || rm -f
test . = "." || test -z "" || rm -f
rm -f mesa/main/.deps/.dirstamp
rm -f mesa/main/.dirstamp
rm -f mesa/program/.deps/.dirstamp
rm -f mesa/program/.dirstamp
test .. != .. && rm ./git_sha1.h
Makefile:1009: recipe for target 'distclean-local' failed
make[2]: *** [distclean-local] Error 1
make[2]: Leaving directory '/mnt/sdb1/Gits/mesa/src'
Makefile:699: recipe for target 'distclean-recursive' failed
make[1]: *** [distclean-recursive] Error 1
make[1]: Leaving directory '/mnt/sdb1/Gits/mesa/src'
Makefile:644: recipe for target 'distclean-recursive' failed
make: *** [distclean-recursive] Error 1
More information about the mesa-dev
mailing list