Add a new build mode to the Makefile that doesn't try to pull from external sources...
[jquery.git] / Makefile
index a0dbd8b..1854c86 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -8,10 +8,10 @@ BASE_FILES = ${SRC_DIR}/core.js\
        ${SRC_DIR}/support.js\
        ${SRC_DIR}/data.js\
        ${SRC_DIR}/queue.js\
+       ${SRC_DIR}/attributes.js\
        ${SRC_DIR}/event.js\
        ${SRC_DIR}/selector.js\
        ${SRC_DIR}/traversing.js\
-       ${SRC_DIR}/attributes.js\
        ${SRC_DIR}/manipulation.js\
        ${SRC_DIR}/css.js\
        ${SRC_DIR}/ajax.js\
@@ -41,12 +41,13 @@ ${DIST_DIR}:
 
 init:
        @@echo "Grabbing external dependencies..."
-       @@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
+       @@if test ! -d test/qunit/.git; then git clone git://github.com/jquery/qunit.git test/qunit; fi
+       @@if test ! -d src/sizzle/.git; then git clone git://github.com/jeresig/sizzle.git src/sizzle; fi
+       @@cd src/sizzle && git pull origin master > /dev/null 2>&1
+       @@cd test/qunit && git pull origin master > /dev/null 2>&1
 
 jquery: ${DIST_DIR} selector ${JQ}
+jq: ${DIST_DIR} ${JQ}
 
 ${JQ}: ${MODULES}
        @@echo "Building" ${JQ}