From fe05f310fb45e184c102b920c2dd00500444f572 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20D=C3=A4schle?= Date: Sun, 5 Apr 2020 16:36:13 +0200 Subject: [PATCH] make: remove /tmp/vc and /var/tmp/tcc when V_ALWAYS_CLEAN_TMP is set --- Makefile | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 3d62b96638..064882b102 100644 --- a/Makefile +++ b/Makefile @@ -56,13 +56,18 @@ endif ifndef ANDROID $(MAKE) modules endif +endif +ifdef V_ALWAYS_CLEAN_TMP + $(MAKE) clean_tmp endif @echo "V has been successfully built" -clean: +clean: clean_tmp + git clean -xf + +clean_tmp: rm -rf $(TMPTCC) rm -rf $(TMPVC) - git clean -xf latest_vc: $(TMPVC)/.git/config cd $(TMPVC) && $(GITCLEANPULL)