From ed2c137d8c0592d9723b621df67ccfeaea8665a3 Mon Sep 17 00:00:00 2001 From: John-Mark Gurney Date: Fri, 31 Mar 2023 14:15:24 -0700 Subject: [PATCH] now that we require obj dir, we need to cd into CURDIR for these commands.. --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index fa55bdc..c22e1c6 100644 --- a/Makefile +++ b/Makefile @@ -132,11 +132,11 @@ LORAMAC_BRANCH = master .for module in STROBE LORAMAC .PHONY: init-$($(module)_NAME) init-$($(module)_NAME): - git subtree add -P $($(module)_NAME) --squash $($(module)_REPO) $($(module)_BRANCH) + cd $(.CURDIR) && git subtree add -P $($(module)_NAME) --squash $($(module)_REPO) $($(module)_BRANCH) .PHONY: update-$($(module)_NAME) update-$($(module)_NAME): - git subtree pull -P $($(module)_NAME) --squash $($(module)_REPO) $($(module)_BRANCH) + cd $(.CURDIR) && git subtree pull -P $($(module)_NAME) --squash $($(module)_REPO) $($(module)_BRANCH) .endfor ########################################################