aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorjeresig <jeresig@gmail.com>2010-03-01 21:51:44 -0500
committerjeresig <jeresig@gmail.com>2010-03-01 21:51:44 -0500
commit950b5d64a27994db1697eb4e605f5ea48ad8021b (patch)
tree3c436dffcca5714af3194d278a3f61cb485f6801 /Makefile
parentdcf0fa5048ef2379d551f29ffa29b14ec5ee09d5 (diff)
downloadjquery-950b5d64a27994db1697eb4e605f5ea48ad8021b.tar.gz
jquery-950b5d64a27994db1697eb4e605f5ea48ad8021b.zip
Added in integrated JSLint checking against the jQuery source. Just run 'make lint' to see the result.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile11
1 files changed, 8 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 2c0a9faa2..e026d9e67 100644
--- a/Makefile
+++ b/Makefile
@@ -29,11 +29,12 @@ JQ_MIN = ${DIST_DIR}/jquery.min.js
JQ_VER = `cat version.txt`
VER = sed s/@VERSION/${JQ_VER}/
+RHINO = java -jar ${BUILD_DIR}/js.jar
MINJAR = java -jar ${BUILD_DIR}/google-compiler-20091218.jar
DATE=`git log -1 | grep Date: | sed 's/[^:]*: *//'`
-all: jquery min
+all: jquery lint min
@@echo "jQuery build complete."
${DIST_DIR}:
@@ -49,7 +50,7 @@ init:
jquery: ${DIST_DIR} selector ${JQ}
jq: ${DIST_DIR} ${JQ}
-${JQ}: ${MODULES}
+${JQ}: selector ${MODULES}
@@echo "Building" ${JQ}
@@mkdir -p ${DIST_DIR}
@@ -58,10 +59,14 @@ ${JQ}: ${MODULES}
sed 's/Date:./&'"${DATE}"'/' | \
${VER} > ${JQ};
-selector: init
+selector: ${DIST_DIR} init
@@echo "Building selector code from Sizzle"
@@sed '/EXPOSE/r src/sizzle-jquery.js' src/sizzle/sizzle.js > src/selector.js
+lint: ${JQ}
+ @@echo "Checking jQuery against JSLint..."
+ @@${RHINO} build/jslint-check.js
+
min: ${JQ_MIN}
${JQ_MIN}: ${JQ}