diff options
author | Loïc Hoguin <[email protected]> | 2015-10-22 14:24:32 +0200 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2015-10-22 14:24:32 +0200 |
commit | 312f9c646ed83f6bf5bccc237e7903f2705a8c08 (patch) | |
tree | 9faf45e967bfd24ec7a6beeee6ea658e9199af84 /core | |
parent | d07357f52ad8a0b67aef6d95506bb2df0a068ad3 (diff) | |
download | erlang.mk-312f9c646ed83f6bf5bccc237e7903f2705a8c08.tar.gz erlang.mk-312f9c646ed83f6bf5bccc237e7903f2705a8c08.tar.bz2 erlang.mk-312f9c646ed83f6bf5bccc237e7903f2705a8c08.zip |
Add git-submodule fetch method
Initially submitted by Daniel White.
Diffstat (limited to 'core')
-rw-r--r-- | core/deps.mk | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/core/deps.mk b/core/deps.mk index b9ddfab..cc5a34f 100644 --- a/core/deps.mk +++ b/core/deps.mk @@ -500,6 +500,10 @@ define dep_fetch_git cd $(DEPS_DIR)/$(call dep_name,$(1)) && git checkout -q $(call dep_commit,$(1)); endef +define dep_fetch_git-submodule + git submodule update --init -- $(DEPS_DIR)/$1; +endef + define dep_fetch_hg hg clone -q -U $(call dep_repo,$(1)) $(DEPS_DIR)/$(call dep_name,$(1)); \ cd $(DEPS_DIR)/$(call dep_name,$(1)) && hg update -q $(call dep_commit,$(1)); |