]> khamidou — GitHub mirrors - popcorn-js.git/commitdiff
[#354] use different targets for linting popcorn.js and the plugins
authorDaniel Brooks <db48x@db48x.net>
Tue, 22 Feb 2011 17:08:56 +0000 (11:08 -0600)
committerDaniel Brooks <db48x@db48x.net>
Tue, 22 Feb 2011 17:08:56 +0000 (11:08 -0600)
Makefile [changed mode: 0644->0755]

old mode 100644 (file)
new mode 100755 (executable)
index eca8f0a..c1f9f49
--- a/Makefile
+++ b/Makefile
@@ -18,7 +18,7 @@ POPCORN_SRC = ${PREFIX}/popcorn.js
 POPCORN_DIST = ${DIST_DIR}/popcorn.js
 POPCORN_MIN = ${DIST_DIR}/popcorn.min.js
 
-all: popcorn min lint
+all: popcorn min lint lint-plugins
        @@echo "Popcorn build complete."
 
 ${DIST_DIR}:
@@ -45,10 +45,14 @@ ${POPCORN_MIN}: ${POPCORN_DIST}
        @@rm -f ${POPCORN_MIN}.tmp      
        
 
-lint: ${POPCORN_DIST}
+lint:
        @@echo "Checking Popcorn against JSLint..."
-       @@${RHINO} build/jslint-check.js popcorn.js ${PLUGINS_SRC}
-       
+       @@${RHINO} build/jslint-check.js popcorn.js
+
+lint-plugins:
+       @@echo "Checking all plugins against JSLint..."
+       @@${RHINO} build/jslint-check.js ${PLUGINS_SRC}
+
 clean:
        @@echo "Removing Distribution directory:" ${DIST_DIR}
        @@rm -rf ${DIST_DIR}