aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKylie McClain <somasis@exherbo.org>2016-02-11 02:28:48 -0500
committerKylie McClain <somasis@exherbo.org>2016-02-11 02:29:42 -0500
commit34e75a16581a5a6c6c0740d52e082dc769ec1f79 (patch)
tree21d23a0d8154d2cfb1854d14ee6490a073be4279
parent7fbf8ec60aa0143df5292a96dc6b6106139b5b97 (diff)
downloadlighter-34e75a16581a5a6c6c0740d52e082dc769ec1f79.tar.gz
lighter-34e75a16581a5a6c6c0740d52e082dc769ec1f79.tar.xz
lighter-34e75a16581a5a6c6c0740d52e082dc769ec1f79.zip
Makefile: remove build dir after successful build
-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"