5 DIST_DIR = ${PREFIX}/dist
7 BASE_FILES = ${SRC_DIR}/core.js\
11 ${SRC_DIR}/support.js\
12 ${SRC_DIR}/selector.js\
13 ${SRC_DIR}/traversing.js\
14 ${SRC_DIR}/attributes.js\
15 ${SRC_DIR}/manipulation.js\
20 ${SRC_DIR}/dimensions.js
22 MODULES = ${SRC_DIR}/intro.js\
26 JQ = ${DIST_DIR}/jquery.js
27 JQ_MIN = ${DIST_DIR}/jquery.min.js
29 JQ_VER = `cat version.txt`
30 VER = sed s/@VERSION/${JQ_VER}/
32 MINJAR = java -jar ${BUILD_DIR}/yuicompressor-2.4.2.jar
34 DATE=`git log -1 | grep Date: | sed 's/[^:]*: *//'`
37 @@echo "jQuery build complete."
40 @@mkdir -p ${DIST_DIR}
43 @@echo "Grabbing external dependencies..."
44 @@if test ! -d test/qunit; then git clone git://github.com/jquery/qunit.git test/qunit; fi
45 @@if test ! -d src/sizzle; then git clone git://github.com/jeresig/sizzle.git src/sizzle; fi
46 @@cd src/sizzle && git pull origin master &> /dev/null
47 @@cd test/qunit && git pull origin master &> /dev/null
49 jquery: ${DIST_DIR} selector ${JQ}
52 @@echo "Building" ${JQ}
54 @@mkdir -p ${DIST_DIR}
57 sed 's/Date:./&'"${DATE}"'/' | \
61 @@echo "Building selector code from Sizzle"
62 @@sed '/EXPOSE/r src/sizzle-jquery.js' src/sizzle/sizzle.js > src/selector.js
67 @@echo "Building" ${JQ_MIN}
69 @@${MINJAR} ${JQ} > ${JQ_MIN}
72 @@echo "Removing Distribution directory:" ${DIST_DIR}
75 @@echo "Removing built copy of Sizzle"
78 @@echo "Removing cloned directories"
79 @@rm -rf test/qunit src/sizzle