make $(NIM_BINARY) a phony target

and have "update-common" run "deps-common" instead of "deps"
This commit is contained in:
Ștefan Talpalaru 2021-02-24 17:35:35 +01:00
parent 316f033bad
commit 79fa0d6367
No known key found for this signature in database
GPG Key ID: CBF7934204F1B6F9
1 changed files with 2 additions and 4 deletions

View File

@ -12,6 +12,7 @@
deps-common \
build-nim \
update-common \
$(NIM_BINARY) \
update-remote \
nat-libs \
libminiupnpc.a \
@ -98,10 +99,7 @@ update-common: | sanity-checks
find . -type d -name nimcache -print0 | xargs -0 rm -rf
$(GET_CURRENT_COMMIT_TIMESTAMP) > $(UPDATE_TIMESTAMP)
rm -rf $(NIMBLE_DIR)
+ "$(MAKE)" --no-print-directory deps
ifeq ($(USE_SYSTEM_NIM), 0)
+ "$(MAKE)" --no-print-directory build-nim
endif
+ "$(MAKE)" --no-print-directory deps-common
#- rebuilds the Nim compiler if the corresponding submodule is updated
$(NIM_BINARY): | sanity-checks