Use .add() to merge two test groups together for .unwrap().
[jquery.git] / Makefile
blob1ebc643d862a53e1959b485dbada6713f04b4cf4
1 SRC_DIR = src
2 BUILD_DIR = build
4 PREFIX = .
5 DIST_DIR = ${PREFIX}/dist
7 BASE_FILES = ${SRC_DIR}/core.js\
8 ${SRC_DIR}/data.js\
9 ${SRC_DIR}/event.js\
10 ${SRC_DIR}/support.js\
11 ${SRC_DIR}/selector.js\
12 ${SRC_DIR}/traversing.js\
13 ${SRC_DIR}/attributes.js\
14 ${SRC_DIR}/manipulation.js\
15 ${SRC_DIR}/css.js\
16 ${SRC_DIR}/ajax.js\
17 ${SRC_DIR}/fx.js\
18 ${SRC_DIR}/offset.js\
19 ${SRC_DIR}/dimensions.js
21 MODULES = ${SRC_DIR}/intro.js\
22 ${BASE_FILES}\
23 ${SRC_DIR}/outro.js
25 JQ = ${DIST_DIR}/jquery.js
26 JQ_MIN = ${DIST_DIR}/jquery.min.js
28 JQ_VER = `cat version.txt`
29 VER = sed s/@VERSION/${JQ_VER}/
31 MINJAR = java -jar ${BUILD_DIR}/yuicompressor-2.4.2.jar
33 DATE=`git log -1 | grep Date: | sed 's/[^:]*: *//'`
35 all: jquery min
36 @@echo "jQuery build complete."
38 ${DIST_DIR}:
39 @@mkdir -p ${DIST_DIR}
41 init:
42 @@echo "Grabbing external dependencies..."
43 @@git submodule init
44 @@git submodule update
45 @@cd src/sizzle && git pull origin master
46 @@cd test/qunit && git pull origin master
47 @@git submodule update
49 jquery: ${DIST_DIR} selector ${JQ}
51 ${JQ}: ${MODULES}
52 @@echo "Building" ${JQ}
54 @@mkdir -p ${DIST_DIR}
56 @@cat ${MODULES} | \
57 sed 's/Date:./&'"${DATE}"'/' | \
58 ${VER} > ${JQ};
60 @@echo ${JQ} "Built"
61 @@echo
63 selector: init
64 @@echo "Building selector code from Sizzle"
65 @@sed '/EXPOSE/r src/sizzle-jquery.js' src/sizzle/sizzle.js > src/selector.js
67 min: ${JQ_MIN}
69 ${JQ_MIN}: ${JQ}
70 @@echo "Building" ${JQ_MIN}
72 @@echo " - Compressing using Minifier"
73 @@${MINJAR} ${JQ} > ${JQ_MIN}
75 @@echo ${JQ_MIN} "Built"
76 @@echo
78 clean:
79 @@echo "Removing Distribution directory:" ${DIST_DIR}
80 @@rm -rf ${DIST_DIR}
82 @@echo "Removing built copy of Sizzle"
83 @@rm src/selector.js