From 565497fa423c76a316d58e7f266ad44169f28bf4 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Johannes=20M=C3=BCller?= <straightshoota@gmail.com>
Date: Thu, 21 Oct 2021 20:00:53 +0200
Subject: [PATCH] Add recipe to clean up temporary build artifacts

---
 linux/Makefile | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/linux/Makefile b/linux/Makefile
index e37bdf50..733f8020 100644
--- a/linux/Makefile
+++ b/linux/Makefile
@@ -55,7 +55,7 @@ BUILD_ARGS64_BUNDLED = $(BUILD_ARGS64) \
 all: all64 ## Build all distribution tarballs [default]
 
 .PHONY: all64
-all64: compress64 ## Build distribution tarballs for 64 bits
+all64: compress64 clean_tmp ## Build distribution tarballs for 64 bits
 
 .PHONY: help
 help: ## Show this help
@@ -112,3 +112,8 @@ $(OUTPUT_DIR)/%.xz: $(OUTPUT_DIR)/%
 .PHONY: clean
 clean: ## Clean up build directory
 	rm -Rf $(OUTPUT_DIR)
+
+.PHONY: clean_tmp
+clean_tmp: ## Clean up temporary build artifacts
+	rm -Rf $(OUTPUT_DIR)/bundled-libs.tar
+	rm -Rf $(OUTPUT_BASENAME64)-bundled