Permalink
Browse files

Update Makefile

  • Loading branch information...
1 parent b64fe9b commit 9257abc18e52f9bb29766e8d602dc04f2d831e67 @pyrsmk committed Mar 30, 2012
Showing with 7 additions and 8 deletions.
  1. +7 −8 Makefile
View
@@ -1,16 +1,15 @@
-OLD = ls -l | grep .js | sed -r 's/.+\s(\S+)/\1/'
-NAME = ls src | sed -r 's/ender\.js|package\.json|\s+//' | sed -nr 's/(.+)\.js/\1/p'
-VERSION = grep -m 1 Version src/\`${NAME}\`.js | sed -r 's/.*:\s*(.+)/\1/'
+NAME = nut
+VERSION = grep -m 1 Version src/${NAME}.js | cut -c19-
all: lint minify
lint:
- @jshint src/`${NAME}`.js --config config/jshint.json
+ jshint src/${NAME}.js --config config/jshint.json
minify:
- @rm -f `${OLD}`
- @uglifyjs -nc src/`${NAME}`.js > `${NAME}`-`${VERSION}`.min.js
+ rm -f ${NAME}*
+ uglifyjs -nc src/${NAME}.js > ${NAME}-`${VERSION}`.min.js
instdeps:
- @npm install jshint -g
- @npm install uglify-js -g
+ npm install jshint -g
+ npm install uglify-js -g

0 comments on commit 9257abc

Please sign in to comment.