-
Notifications
You must be signed in to change notification settings - Fork 62
/
Copy pathMakefile
41 lines (32 loc) · 1.1 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# Install these:
# pip install squeeze
# pip install Pygments==dev
# Install nodejs and npm
# Install these:
# npm install uglify-js@latest # or use the latest from the github repo.
# npm install docco
# Install coffee:
# git clone https://github.com/jashkenas/coffee-script.git
# cd coffee-script
# sudo bin/cake install
SQUEEZE=squeeze
UGLIFYJS=uglifyjs
DOCCO=docco
.PHONY: all clean docs
packed: string_score.min.js string_score.uglify.js
all: packed docs string_score.js
string_score.min.js: string_score.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
string_score.js: coffee/string_score.coffee
coffee -b -c coffee/string_score.coffee
docs: coffee/string_score.coffee
$(DOCCO) coffee/string_score.coffee
clean:
@-rm -rf string_score.*.js
@-rm -rf score*js
@-rm -rf docs/
@-rm -f coffee/score.js