aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorJohn Resig <jeresig@gmail.com>2009-10-26 18:23:31 -0400
committerJohn Resig <jeresig@gmail.com>2009-10-26 18:23:31 -0400
commit81f65ce33931831dc651c5d3ebf2b31b551b6b8b (patch)
tree7c0ec992c8f75eba0bbb91dae1f63d26c6f0e061 /Makefile
parentbbffc99f7c60d42d4286786dfd6a43aa31d62ae2 (diff)
downloadjquery-81f65ce33931831dc651c5d3ebf2b31b551b6b8b.tar.gz
jquery-81f65ce33931831dc651c5d3ebf2b31b551b6b8b.zip
Pull in the Sizzle library dynamically using a submodule and make it part of the jQuery build process.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile25
1 files changed, 15 insertions, 10 deletions
diff --git a/Makefile b/Makefile
index 0d54c96c0..13e5299a3 100644
--- a/Makefile
+++ b/Makefile
@@ -2,7 +2,6 @@ SRC_DIR = src
BUILD_DIR = build
PREFIX = .
-TEST_DIR = ${PREFIX}/test
DIST_DIR = ${PREFIX}/dist
BASE_FILES = ${SRC_DIR}/core.js\
@@ -33,18 +32,24 @@ MINJAR = java -jar ${BUILD_DIR}/yuicompressor-2.4.2.jar
DATE=`git log -1 | grep Date: | sed 's/[^:]*: *//'`
-all: jquery test min
+all: jquery min
@@echo "jQuery build complete."
${DIST_DIR}:
@@mkdir -p ${DIST_DIR}
-jquery: ${DIST_DIR} ${JQ}
+init:
+ @@echo "Grabbing external dependencies..."
+ @@git submodule init
+ @@git submodule update
+
+jquery: ${DIST_DIR} selector ${JQ}
${JQ}: ${MODULES}
@@echo "Building" ${JQ}
@@mkdir -p ${DIST_DIR}
+
@@cat ${MODULES} | \
sed 's/Date:./&'"${DATE}"'/' | \
${VER} > ${JQ};
@@ -52,6 +57,10 @@ ${JQ}: ${MODULES}
@@echo ${JQ} "Built"
@@echo
+selector: init
+ @@echo "Building selector code from Sizzle"
+ @@sed '/EXPOSE/r src/sizzle-jquery.js' src/sizzle/sizzle.js > src/selector.js
+
min: ${JQ_MIN}
${JQ_MIN}: ${JQ}
@@ -63,13 +72,9 @@ ${JQ_MIN}: ${JQ}
@@echo ${JQ_MIN} "Built"
@@echo
-test: ${JQ}
- @@echo "Building Test Suite"
- @@echo "Test Suite Built"
- @@echo
- git submodule init
- git submodule update
-
clean:
@@echo "Removing Distribution directory:" ${DIST_DIR}
@@rm -rf ${DIST_DIR}
+
+ @@echo "Removing built copy of Sizzle"
+ @@rm src/selector.js