Message ID | 20180613125601.14371-5-alex.bennee@linaro.org |
---|---|
State | Superseded |
Headers | show |
Series | SVE support and various misc fixes | expand |
On 06/13/2018 02:55 AM, Alex Bennée wrote: > This can cause much confusion when you have been building in your > source tree. I've added a distclean so we don't unexpectedly drop the > config for normal make clean invocations. > > Signed-off-by: Alex Bennée <alex.bennee@linaro.org> > --- > Makefile | 3 +++ > build-all-archs | 10 ++++++++++ > 2 files changed, 13 insertions(+) Reviewed-by: Richard Henderson <richard.henderson@linaro.org> r~
diff --git a/Makefile b/Makefile index ca80eef..16e48a0 100644 --- a/Makefile +++ b/Makefile @@ -51,3 +51,6 @@ $(PROG): $(OBJS) clean: rm -f $(PROG) $(OBJS) $(BINS) + +distclean: clean + rm -f config.h Makefile.in diff --git a/build-all-archs b/build-all-archs index a2f5cff..a7cd7c2 100755 --- a/build-all-archs +++ b/build-all-archs @@ -54,6 +54,16 @@ while [[ "$1" = -* ]]; do esac done +# +# If you are developing your primary architecture directly out of the +# source tree you can confuse any out-of-tree builds thanks to random +# crap in your VPATH. Let's detect that and save some hair pulling. +# +if [ -e Makefile.in ]; then + echo "Cleaning in-src-tree build" + make distclean +fi + # Debian stretch and Ubuntu Xenial have cross compiler packages for # all of these: # gcc-arm-linux-gnueabihf gcc-aarch64-linux-gnu gcc-m68k-linux-gnu
This can cause much confusion when you have been building in your source tree. I've added a distclean so we don't unexpectedly drop the config for normal make clean invocations. Signed-off-by: Alex Bennée <alex.bennee@linaro.org> --- Makefile | 3 +++ build-all-archs | 10 ++++++++++ 2 files changed, 13 insertions(+) -- 2.17.1