From fce51f78dc59aa7d4dd14da4812e8d3218adaae7 Mon Sep 17 00:00:00 2001 From: Igor Pashev Date: Tue, 16 Apr 2013 17:36:57 +0400 Subject: Do not try to clone if source dir exists --- rules/git.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3