+ifeq ($(strip $(V)),0)
+verbose = --quiet
+else ifeq ($(strip $(V)),1)
+verbose =
+else
+verbose = --verbose
+endif
+
+define clone_or_pull
+-@@if test ! -d $(strip ${1})/.git; then \
+ echo "Cloning $(strip ${1})..."; \
+ git clone $(strip ${verbose}) --depth=1 $(strip ${2}) $(strip ${1}); \
+ else \
+ echo "Pulling $(strip ${1})..."; \
+ git --git-dir=$(strip ${1})/.git pull $(strip ${verbose}) origin master; \
+ fi
+
+endef
+
+init:
+ $(call clone_or_pull, ${QUNIT_DIR}, git://github.com/jquery/qunit.git)
+ $(call clone_or_pull, ${SIZZLE_DIR}, git://github.com/jeresig/sizzle.git)
+
+jquery: ${JQ}
+jq: ${JQ}
+
+${JQ}: ${MODULES} ${DIST_DIR}