[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-arm] [RISU PATCH v4 04/22] build-all-arches: do a distclean $(SRC)
From: |
Alex Bennée |
Subject: |
[Qemu-arm] [RISU PATCH v4 04/22] build-all-arches: do a distclean $(SRC) configured |
Date: |
Fri, 22 Jun 2018 15:11:47 +0100 |
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 <address@hidden>
Reviewed-by: Richard Henderson <address@hidden>
---
Makefile | 3 +++
build-all-archs | 10 ++++++++++
2 files changed, 13 insertions(+)
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
--
2.17.1
- [Qemu-arm] [RISU PATCH v4 00/22] ARM SVE support for RISU, Alex Bennée, 2018/06/22
- [Qemu-arm] [RISU PATCH v4 01/22] risu_reginfo_aarch64: include signal.h for FPSIMD_MAGIC, Alex Bennée, 2018/06/22
- [Qemu-arm] [RISU PATCH v4 02/22] comms: include header for writev, Alex Bennée, 2018/06/22
- [Qemu-arm] [RISU PATCH v4 05/22] risu: add zlib indication to help text, Alex Bennée, 2018/06/22
- [Qemu-arm] [RISU PATCH v4 03/22] build-all-arches: expand the range of docker images, Alex Bennée, 2018/06/22
- [Qemu-arm] [RISU PATCH v4 04/22] build-all-arches: do a distclean $(SRC) configured,
Alex Bennée <=
- [Qemu-arm] [RISU PATCH v4 06/22] Makefile: include risu_reginfo_$(ARCH) in HDRS, Alex Bennée, 2018/06/22
- [Qemu-arm] [RISU PATCH v4 08/22] risugen: Initialize sve predicates with random data, Alex Bennée, 2018/06/22
- [Qemu-arm] [RISU PATCH v4 07/22] risugen: add --sve support, Alex Bennée, 2018/06/22
- [Qemu-arm] [RISU PATCH v4 09/22] risugen: use fewer insns for aarch64 immediate load, Alex Bennée, 2018/06/22
- [Qemu-arm] [RISU PATCH v4 10/22] risugen: add reg_plus_imm_pl and reg_plus_imm_vl address helpers, Alex Bennée, 2018/06/22
- [Qemu-arm] [RISU PATCH v4 11/22] risugen: add dtype_msz address helper, Alex Bennée, 2018/06/22
- [Qemu-arm] [RISU PATCH v4 16/22] risu_reginfo_aarch64: unionify VFP regs, Alex Bennée, 2018/06/22