diff options
author | Andreas Krüger <[email protected]> | 2018-03-13 16:54:48 +0100 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2018-03-14 16:32:30 +0100 |
commit | f361821960c95c8cf30a4468243260ef0b4e1c95 (patch) | |
tree | 0c246b58dbd74a995fa9d4db9423ff4d5c5a18eb | |
parent | a22f31ebf0f97025d6534bfce448e85a421af1a0 (diff) | |
download | erlang.mk-f361821960c95c8cf30a4468243260ef0b4e1c95.tar.gz erlang.mk-f361821960c95c8cf30a4468243260ef0b4e1c95.tar.bz2 erlang.mk-f361821960c95c8cf30a4468243260ef0b4e1c95.zip |
Speed up the git clone download by using shallow downloads.
-rw-r--r-- | Makefile | 2 | ||||
-rw-r--r-- | core/core.mk | 4 | ||||
-rw-r--r-- | erlang.mk | 2 |
3 files changed, 5 insertions, 3 deletions
@@ -78,7 +78,7 @@ docs: $(MAKE) -f core/core.mk -f core/docs.mk -f plugins/asciidoc.mk asciidoc DEPS=asciideck up: - git clone [email protected]:ninenines/erlang.mk.git gh-pages + git clone --depth 1 [email protected]:ninenines/erlang.mk.git gh-pages cd gh-pages && git checkout gh-pages cd gh-pages && make cd gh-pages && git push origin gh-pages diff --git a/core/core.mk b/core/core.mk index 63265d3..9925856 100644 --- a/core/core.mk +++ b/core/core.mk @@ -187,9 +187,11 @@ ERLANG_MK_BUILD_DIR ?= .erlang.mk.build erlang-mk: WITHOUT ?= $(ERLANG_MK_WITHOUT) erlang-mk: - git clone $(ERLANG_MK_REPO) $(ERLANG_MK_BUILD_DIR) ifdef ERLANG_MK_COMMIT + git clone $(ERLANG_MK_REPO) $(ERLANG_MK_BUILD_DIR) cd $(ERLANG_MK_BUILD_DIR) && git checkout $(ERLANG_MK_COMMIT) +else + git clone --depth 1 $(ERLANG_MK_REPO) $(ERLANG_MK_BUILD_DIR) endif if [ -f $(ERLANG_MK_BUILD_CONFIG) ]; then cp $(ERLANG_MK_BUILD_CONFIG) $(ERLANG_MK_BUILD_DIR)/build.config; fi $(MAKE) -C $(ERLANG_MK_BUILD_DIR) WITHOUT='$(strip $(WITHOUT))' @@ -4,7 +4,7 @@ ERLANG_MK_BUILD_CONFIG ?= build.config ERLANG_MK_BUILD_DIR ?= .erlang.mk.build erlang.mk: bootstrap - git clone https://github.com/ninenines/erlang.mk $(ERLANG_MK_BUILD_DIR) + git clone --depth 1 https://github.com/ninenines/erlang.mk $(ERLANG_MK_BUILD_DIR) if [ -f $(ERLANG_MK_BUILD_CONFIG) ]; then cp $(ERLANG_MK_BUILD_CONFIG) $(ERLANG_MK_BUILD_DIR); fi cd $(ERLANG_MK_BUILD_DIR) && $(MAKE) cp $(ERLANG_MK_BUILD_DIR)/erlang.mk ./erlang.mk |