From 41272d2002a46383265afe20881de8d849eafe01 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C8=98tefan=20Talpalaru?= Date: Sun, 20 Sep 2020 15:13:10 +0200 Subject: [PATCH] update-common: delete "nimcache" directories --- makefiles/targets.mk | 2 ++ 1 file changed, 2 insertions(+) diff --git a/makefiles/targets.mk b/makefiles/targets.mk index 48b715b..1b2f5de 100644 --- a/makefiles/targets.mk +++ b/makefiles/targets.mk @@ -64,6 +64,7 @@ build-nim: | sanity-checks #- in case of submodule URL changes, propagates that change in the parent repo's .git directory #- initialises and updates the Git submodules #- hard-resets the working copies of submodules +#- deletes "nimcache" directories #- deletes the ".nimble" dir and executes the "deps" target #- allows parallel building with the '+' prefix #- rebuilds the Nim compiler if the corresponding submodule is updated @@ -74,6 +75,7 @@ update-common: | sanity-checks git submodule sync --quiet --recursive git submodule update --init --recursive git submodule foreach --quiet --recursive 'git reset --quiet --hard' + find . -type d -name nimcache -print0 | xargs -0 rm -rf rm -rf $(NIMBLE_DIR) + "$(MAKE)" --no-print-directory deps ifeq ($(USE_SYSTEM_NIM), 0)