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 ########################################################