5 DOCS_DIR = ${PREFIX}/docs
6 TEST_DIR = ${PREFIX}/test
7 DIST_DIR = ${PREFIX}/dist
8 SPEED_DIR = ${PREFIX}/speed
11 BASE_FILES = ${SRC_DIR}/core.js\
14 ${SRC_DIR}/support.js\
15 ${SRC_DIR}/selector.js\
16 ${SRC_DIR}/traversing.js\
17 ${SRC_DIR}/attributes.js\
18 ${SRC_DIR}/manipulation.js\
23 ${SRC_DIR}/dimensions.js
25 PLUGINS = ${PLUG_DIR}/button/*\
28 ${PLUG_DIR}/dimensions/*\
29 ${PLUG_DIR}/metadata/*\
31 ${PLUG_DIR}/greybox/greybox.js\
32 ${PLUG_DIR}/interface/*\
34 ${PLUG_DIR}/tablesorter/*\
36 ${PLUG_DIR}/tooltip/jquery.tooltip.js\
37 ${PLUG_DIR}/accordion/jquery.accordion.js
39 MODULES = ${SRC_DIR}/intro.js\
43 MODULES_WITH_PLUGINS = ${SRC_DIR}/intro.js\
48 JQ = ${DIST_DIR}/jquery.js
49 JQ_LITE = ${DIST_DIR}/jquery.lite.js
50 JQ_MIN = ${DIST_DIR}/jquery.min.js
51 JQ_PACK = ${DIST_DIR}/jquery.pack.js
53 JQ_VER = `cat version.txt`
54 VER = sed s/@VERSION/${JQ_VER}/
56 JAR = java -Dfile.encoding=utf-8 -jar ${BUILD_DIR}/js.jar
57 MINJAR = java -jar ${BUILD_DIR}/yuicompressor-2.4.2.jar
59 DATE=`svn info . | grep Date: | sed 's/.*: //g'`
60 REV=`svn info . | grep Rev: | sed 's/.*: //g'`
63 @@echo "jQuery build complete."
66 @@mkdir -p ${DIST_DIR}
68 jquery: ${DIST_DIR} ${JQ}
71 @@echo "Building" ${JQ}
73 @@mkdir -p ${DIST_DIR}
75 sed 's/Date:./&'"${DATE}"'/' | \
76 sed 's/Revision:./&'"${REV}"'/' | \
82 with_plugins: ${MODULES_WITH_PLUGINS}
83 @@echo "Building" ${JQ}
85 @@mkdir -p ${DIST_DIR}
86 @@cat ${MODULES_WITH_PLUGINS} | ${VER} > ${JQ};
94 @@echo "Building" ${JQ_LITE}
98 @@echo ${JQ_LITE} "Built"
104 @@echo "Building" ${JQ_PACK}
106 @@echo " - Compressing using Packer"
107 @@${JAR} ${BUILD_DIR}/build/pack.js ${JQ} ${JQ_PACK}
109 @@echo ${JQ_PACK} "Built"
115 @@echo "Building" ${JQ_MIN}
117 @@echo " - Compressing using Minifier"
118 @@${MINJAR} ${JQ} > ${JQ_MIN}
120 @@echo ${JQ_MIN} "Built"
124 @@echo "Building Test Suite"
125 @@echo "Test Suite Built"
129 @@echo "Running Automated Test Suite"
130 @@${JAR} ${BUILD_DIR}/runtest/test.js
132 @@echo "Test Suite Finished"
136 @@echo "Building Speed Test Suite"
138 @@echo " - Making Speed Test Suite Directory:" ${SPEED_DIR}
139 @@mkdir -p ${SPEED_DIR}
141 @@echo " - Copying over script files."
142 @@cp -f ${BUILD_DIR}/speed/index.html ${SPEED_DIR}
143 @@cp -f ${BUILD_DIR}/speed/benchmarker.css ${SPEED_DIR}
144 @@cp -f ${BUILD_DIR}/speed/benchmarker.js ${SPEED_DIR}
145 @@cp -f ${BUILD_DIR}/speed/jquery-basis.js ${SPEED_DIR}
147 @@echo "Speed Test Suite Built"
151 @@echo "Removing Distribution directory:" ${DIST_DIR}
154 @@echo "Removing Documentation directory:" ${DOCS_DIR}
157 @@echo "Removing Speed Test Suite directory:" ${SPEED_DIR}
158 @@rm -rf ${SPEED_DIR}