aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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