From: Daniel Brooks Date: Tue, 22 Feb 2011 17:08:56 +0000 (-0600) Subject: [#354] use different targets for linting popcorn.js and the plugins X-Git-Tag: v0.4~33^2~1^2~2 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=1d3645f8acdeff215976bb2d410e236ddb8ddb23;p=popcorn-js.git [#354] use different targets for linting popcorn.js and the plugins --- diff --git a/Makefile b/Makefile old mode 100644 new mode 100755 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}