aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Pashev <igor.pashev@nexenta.com>2013-04-16 17:36:57 +0400
committerIgor Pashev <igor.pashev@nexenta.com>2013-04-16 17:36:57 +0400
commitfce51f78dc59aa7d4dd14da4812e8d3218adaae7 (patch)
tree80a37a45667291bd04312794cbea93385deee877
parentb819bdac30ddebf6c69fb7c17521683e8108df77 (diff)
downloadcibs-fce51f78dc59aa7d4dd14da4812e8d3218adaae7.tar.gz
Do not try to clone if source dir exists
-rw-r--r--rules/git.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/rules/git.mk b/rules/git.mk
index b631f1a..449f726 100644
--- a/rules/git.mk
+++ b/rules/git.mk
@@ -30,7 +30,7 @@ download-stamp: check-build-dep-stamp
unpack-stamp: download-stamp
download-stamp:
- git clone $(git-url) $(sourcedir)
+ [ -d $(sourcedir) ] || git clone $(git-url) $(sourcedir)
cd $(sourcedir) && git checkout $(git-checkout)
touch $@
download: download-stamp