add `git submodule sync` to `make update`

This commit is contained in:
Ștefan Talpalaru 2019-08-03 22:52:08 +02:00
parent 208691bd9a
commit b3969b9531
No known key found for this signature in database
GPG Key ID: CBF7934204F1B6F9
1 changed files with 2 additions and 0 deletions

View File

@ -159,6 +159,7 @@ build-nim: | sanity-checks
ARCH_OVERRIDE=$(ARCH_OVERRIDE) \
"$(CURDIR)/build_nim.sh" "$(NIM_DIR)" ../Nim-csources ../nimble "$(CI_CACHE)"
#- in case of submodule URL changes, it propagates that change in the parent repo's .git directory
#- initialises and updates the Git submodules
#- manages the AppVeyor cache of Nim compiler binaries
#- deletes the ".nimble" dir to force the execution of the "deps" target
@ -166,6 +167,7 @@ build-nim: | sanity-checks
#- allows parallel building with the '+' prefix
#- rebuilds the Nim compiler if the corresponding submodule is updated
$(NIM_BINARY) update: | sanity-checks
git submodule sync --quiet --recursive
git submodule update --init --recursive
rm -rf $(NIMBLE_DIR) nimbus.nims && \
$(MAKE) nimbus.nims