update-common: take USE_SYSTEM_NIM into account

This commit is contained in:
Ștefan Talpalaru 2020-04-15 19:19:35 +02:00
parent 7b0a7f88c2
commit d8cde2ad85
No known key found for this signature in database
GPG Key ID: CBF7934204F1B6F9
1 changed files with 2 additions and 0 deletions

View File

@ -56,7 +56,9 @@ update-common: | sanity-checks
git submodule sync --quiet --recursive
git submodule update --init --recursive
rm -rf $(NIMBLE_DIR)
ifeq ($(USE_SYSTEM_NIM), 0)
+ $(MAKE) build-nim
endif
#- rebuilds the Nim compiler if the corresponding submodule is updated
$(NIM_BINARY): | sanity-checks