diff --git a/Makefile b/Makefile index 3d005a9d2..827157109 100644 --- a/Makefile +++ b/Makefile @@ -10,10 +10,14 @@ include $(LIBDIR)/main.mk $(LIBDIR)/main.mk: ifneq (,$(shell grep "path *= *$(LIBDIR)" .gitmodules 2>/dev/null)) git submodule sync - git submodule update $(CLONE_ARGS) --init + git submodule update --init else - git clone -q --depth 10 $(CLONE_ARGS) \ - -b main https://github.com/martinthomson/i-d-template $(LIBDIR) +ifneq (,$(wildcard $(ID_TEMPLATE_HOME))) + ln -s "$(ID_TEMPLATE_HOME)" $(LIBDIR) +else + git clone -q --depth 10 -b main \ + https://github.com/martinthomson/i-d-template $(LIBDIR) +endif endif clean::