update-common: delete "nimcache" directories

This commit is contained in:
Ștefan Talpalaru 2020-09-20 15:13:10 +02:00
parent 525772599d
commit 41272d2002
No known key found for this signature in database
GPG Key ID: CBF7934204F1B6F9
1 changed files with 2 additions and 0 deletions

View File

@ -64,6 +64,7 @@ build-nim: | sanity-checks
#- in case of submodule URL changes, propagates that change in the parent repo's .git directory #- in case of submodule URL changes, propagates that change in the parent repo's .git directory
#- initialises and updates the Git submodules #- initialises and updates the Git submodules
#- hard-resets the working copies of submodules #- hard-resets the working copies of submodules
#- deletes "nimcache" directories
#- deletes the ".nimble" dir and executes the "deps" target #- deletes the ".nimble" dir and executes the "deps" target
#- allows parallel building with the '+' prefix #- allows parallel building with the '+' prefix
#- rebuilds the Nim compiler if the corresponding submodule is updated #- 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 sync --quiet --recursive
git submodule update --init --recursive git submodule update --init --recursive
git submodule foreach --quiet --recursive 'git reset --quiet --hard' git submodule foreach --quiet --recursive 'git reset --quiet --hard'
find . -type d -name nimcache -print0 | xargs -0 rm -rf
rm -rf $(NIMBLE_DIR) rm -rf $(NIMBLE_DIR)
+ "$(MAKE)" --no-print-directory deps + "$(MAKE)" --no-print-directory deps
ifeq ($(USE_SYSTEM_NIM), 0) ifeq ($(USE_SYSTEM_NIM), 0)