Skip to content

Commit

Permalink
Updates build files and produces both uglified and yuicompressed js
Browse files Browse the repository at this point in the history
Signed-off-by: Yesudeep Mangalapilly <gora.khargosh@gmail.com>
  • Loading branch information
gorakhargosh committed Feb 17, 2011
1 parent de1ef5a commit a71e4a7
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 7 deletions.
20 changes: 14 additions & 6 deletions Makefile
@@ -1,11 +1,19 @@

# Install this using `pip install yuicompressor`
YUICOMPRESSOR=yuicompressor
# Install this using `pip install squeeze`
SQUEEZE=squeeze
UGLIFYJS=uglifyjs

.PHONY: all
.PHONY: all clean

all: string_score.min.js
all: string_score.min.js string_score.uglify.js

string_score.min.js: string_score.js
@echo "Minifying string_score.js into string_score.min.js"
@$(YUICOMPRESSOR) --type=js string_score.js > string_score.min.js
@echo "Minifying (YUICompressor) string_score.js into string_score.min.js"
@$(SQUEEZE) yuicompressor --type=js string_score.js > string_score.min.js

string_score.uglify.js: string_score.js
@echo "Minifying (UglifyJS) string_score.js into string_score.uglify.js"
@$(UGLIFYJS) -nc string_score.js > string_score.uglify.js

clean:
@-rm -rf string_score.*.js
2 changes: 1 addition & 1 deletion string_score.min.js
@@ -1,4 +1,4 @@
/*
/*!
* string_score.js: Quicksilver-like string scoring algorithm.
* Special thanks to Lachie Cox and Quicksilver for inspiration.
*
Expand Down

0 comments on commit a71e4a7

Please sign in to comment.