make: remove /tmp/vc and /var/tmp/tcc when V_ALWAYS_CLEAN_TMP is set

pull/4253/head
Daniel Däschle 2020-04-05 16:36:13 +02:00 committed by GitHub
parent 781c20a6ae
commit fe05f310fb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 2 deletions

View File

@ -56,13 +56,18 @@ endif
ifndef ANDROID ifndef ANDROID
$(MAKE) modules $(MAKE) modules
endif endif
endif
ifdef V_ALWAYS_CLEAN_TMP
$(MAKE) clean_tmp
endif endif
@echo "V has been successfully built" @echo "V has been successfully built"
clean: clean: clean_tmp
git clean -xf
clean_tmp:
rm -rf $(TMPTCC) rm -rf $(TMPTCC)
rm -rf $(TMPVC) rm -rf $(TMPVC)
git clean -xf
latest_vc: $(TMPVC)/.git/config latest_vc: $(TMPVC)/.git/config
cd $(TMPVC) && $(GITCLEANPULL) cd $(TMPVC) && $(GITCLEANPULL)