From 312f9c646ed83f6bf5bccc237e7903f2705a8c08 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Thu, 22 Oct 2015 14:24:32 +0200 Subject: Add git-submodule fetch method Initially submitted by Daniel White. --- doc/src/guide/deps.asciidoc | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'doc') diff --git a/doc/src/guide/deps.asciidoc b/doc/src/guide/deps.asciidoc index 882a70d..9335439 100644 --- a/doc/src/guide/deps.asciidoc +++ b/doc/src/guide/deps.asciidoc @@ -162,6 +162,7 @@ The following table lists all existing methods: |=== | Name | Format | Description | git | git repo commit | Clone the Git repository and checkout the given version +| git-submodule | git-submodule | Initialize and update the Git submodule | hg | hg repo commit | Clone the Mercurial repository and update to the given version | svn | svn repo | Checkout the given SVN repository | cp | cp path/to/repo | Recursively copy a local directory @@ -184,6 +185,13 @@ Or to fetch Ehsa tag 4.0.3 from Mercurial: [source,make] dep_ehsa = hg https://bitbucket.org/a12n/ehsa 4.0.3 +Git also comes with a concept of submodules. Erlang.mk can +automatically initializes and updates submodules for dependencies, +as long as they were added beforehand using `git submodule add`: + +[source,make] +dep_cowboy = git-submodule + The `svn` method only has a repository value, but that's simply because the SVN repository URL can also contain the path and commit. -- cgit v1.2.3