aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2024-11-19 12:50:37 +0100
committerLoïc Hoguin <[email protected]>2024-11-19 15:34:48 +0100
commit7bf0e7b5f6bd82b5af76d375fb0bf1ffc7ac2b72 (patch)
treecc3310c562c4aea0a9e5bdd2e86e3b54218326bb /doc
parent49534003e387676d0140d9fc24adbd3f9742acaf (diff)
downloaderlang.mk-7bf0e7b5f6bd82b5af76d375fb0bf1ffc7ac2b72.tar.gz
erlang.mk-7bf0e7b5f6bd82b5af76d375fb0bf1ffc7ac2b72.tar.bz2
erlang.mk-7bf0e7b5f6bd82b5af76d375fb0bf1ffc7ac2b72.zip
Remove deprecated dep_fetch, dep_name, dep_repo, dep_commit
Use the query_* equivalents instead.
Diffstat (limited to 'doc')
-rw-r--r--doc/src/guide/deps.asciidoc10
1 files changed, 5 insertions, 5 deletions
diff --git a/doc/src/guide/deps.asciidoc b/doc/src/guide/deps.asciidoc
index c46dce6..1ac2d8a 100644
--- a/doc/src/guide/deps.asciidoc
+++ b/doc/src/guide/deps.asciidoc
@@ -163,7 +163,7 @@ variable. In the case of Cowboy, this would look like this:
[source,make]
DEPS = cowboy
-dep_cowboy_commit = 2.0.0-pre.2
+dep_cowboy_commit = 2.12.0
Erlang.mk will use the package index to get all information
about Cowboy, except the commit number which will be overridden.
@@ -175,7 +175,7 @@ can define the `dep_$(DEP_NAME)` variable with everything:
[source,make]
DEPS = cowboy
-dep_cowboy = git https://github.com/essen/cowboy 2.0.0-pre.2
+dep_cowboy = git https://github.com/essen/cowboy 2.12.0
This will fetch Cowboy from your fork at the given commit.
@@ -264,7 +264,7 @@ If none of the existing methods fit your use, you can simply
define your own. Erlang.mk will consider all variables that
are named as `dep_fetch_$(METHOD)` to be available fetch
methods. You can do anything inside this variable, as long
-as you create a folder named '$(DEPS_DIR)/$(call dep_name,$1)'.
+as you create a folder named '$(DEPS_DIR)/$(call query_name,$1)'.
Or in layman terms, if your dependency is Cowboy, this would
become 'deps/cowboy'.
@@ -273,8 +273,8 @@ To give an example, this is what the Git method does:
[source,make]
----
define dep_fetch_git
- git clone -q -n -- $(call dep_repo,$1) $(DEPS_DIR)/$(call dep_name,$1); \
- cd $(DEPS_DIR)/$(call dep_name,$1) && git checkout -q $(call dep_commit,$1);
+ git clone -q -n -- $(call query_repo_git,$1) $(DEPS_DIR)/$(call query_name,$1); \
+ cd $(DEPS_DIR)/$(call query_name,$1) && git checkout -q $(call query_version_git,$1);
endef
----