Don't try to run the clone code if the directory already exists.
[jquery.git] / Makefile
index 13e5299..e9da144 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -40,8 +40,10 @@ ${DIST_DIR}:
 
 init:
        @@echo "Grabbing external dependencies..."
-       @@git submodule init
-       @@git submodule update
+       @@if test ! -d test/qunit; then git clone git://github.com/jquery/qunit.git test/qunit; fi
+       @@if test ! -d src/sizzle; then git clone git://github.com/jeresig/sizzle.git src/sizzle; fi
+       @@cd src/sizzle && git pull origin master &> /dev/null
+       @@cd test/qunit && git pull origin master &> /dev/null
 
 jquery: ${DIST_DIR} selector ${JQ}