From 79fa0d6367c9394229952aa2fa98cc1a6b60c2b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C8=98tefan=20Talpalaru?= Date: Wed, 24 Feb 2021 17:35:35 +0100 Subject: [PATCH] make $(NIM_BINARY) a phony target and have "update-common" run "deps-common" instead of "deps" --- makefiles/targets.mk | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/makefiles/targets.mk b/makefiles/targets.mk index 0e7e31c..fa1e7e4 100644 --- a/makefiles/targets.mk +++ b/makefiles/targets.mk @@ -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