aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index f7836bb..31f3c47 100644
--- a/Makefile
+++ b/Makefile
@@ -61,6 +61,7 @@ build/.built-%: toolchain
mkdir -p "$(BUILD)/$*"
DESTDIR="$(BUILD)/$*" BUILD="$(BUILD)/root" J="$(JOBS)" sh -e scripts/build/$*
cp -R "$(BUILD)/$*"/* "$(BUILD)/root"
+ -[ -d "$(BUILD)"/$* ] && rm -r "$(BUILD)"/$*
@touch build/.built-$*
@printf "\n"