Skip to content
Browse files

New Makefile structure

  • Loading branch information...
1 parent 7bf347d commit 7022b05b3ad23ff6dc35ba80b6ace8b24c937072 @pyrsmk committed Mar 30, 2012
Showing with 9 additions and 10 deletions.
  1. +9 −10 Makefile
View
19 Makefile
@@ -1,19 +1,18 @@
-OLD = ls -l | grep .js | sed -E 's/.+\s(\S+)/\1/'
-NAME = ls src | sed -E 's/ender\.js|package\.json|\s*//' | sed -nE 's/(.+)\.js/\1/p'
-VERSION = grep -m 1 Version src/\`${NAME}\`.js | sed -E 's/.*:\s*(.+)/\1/'
+NAME = molt
+OLD = ls | grep .js
+VERSION = grep -m 1 Version src/${NAME}.js | sed -E 's/.*:\s*(.+)/\1/'
W = ls lib | grep W
all: lint minify
lint:
- @jshint src/`${NAME}`.js --config config/jshint.json
+ jshint src/${NAME}.js --config config/jshint.json
minify:
- @rm -f `${OLD}`
- @rm -f `${OLD}`
- @uglifyjs -nc src/`${NAME}`.js > `${NAME}`-`${VERSION}`.min.js
- @cat lib/`${W}` `${NAME}`-`${VERSION}`.min.js > `${NAME}`-`${VERSION}`.W.min.js
+ rm -f ${NAME}*
+ uglifyjs -nc src/${NAME}.js > ${NAME}-`${VERSION}`.min.js
+ cat lib/`${W}` ${NAME}-`${VERSION}`.min.js > ${NAME}-`${VERSION}`.W.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 7022b05

Please sign in to comment.
Something went wrong with that request. Please try again.