diff options
author | Igor Pashev <igor.pashev@nexenta.com> | 2013-04-16 17:36:57 +0400 |
---|---|---|
committer | Igor Pashev <igor.pashev@nexenta.com> | 2013-04-16 17:36:57 +0400 |
commit | fce51f78dc59aa7d4dd14da4812e8d3218adaae7 (patch) | |
tree | 80a37a45667291bd04312794cbea93385deee877 | |
parent | b819bdac30ddebf6c69fb7c17521683e8108df77 (diff) | |
download | cibs-fce51f78dc59aa7d4dd14da4812e8d3218adaae7.tar.gz |
Do not try to clone if source dir exists
-rw-r--r-- | rules/git.mk | 2 |
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 |