1 |
|
2 | TESTS = test/*.js
|
3 | SRC = $(shell find lib -name "*.js" -type f)
|
4 | UGLIFY_FLAGS = --no-mangle
|
5 |
|
6 | test:
|
7 | @./support/expresso/bin/expresso \
|
8 | -I lib \
|
9 | -I support/coffee-script/lib \
|
10 | -I support/markdown/lib \
|
11 | -I support/sass/lib \
|
12 | -I support \
|
13 | $(TESTS)
|
14 |
|
15 | benchmark:
|
16 | @node benchmarks/jade.js \
|
17 | && node benchmarks/haml.js \
|
18 | && node benchmarks/haml2.js \
|
19 | && node benchmarks/ejs.js
|
20 |
|
21 | jade.js: $(SRC)
|
22 | @node support/compile.js $^
|
23 |
|
24 | jade.min.js: jade.js
|
25 | @uglifyjs $(UGLIFY_FLAGS) $< > $@ \
|
26 | && du jade.min.js \
|
27 | && du jade.js
|
28 |
|
29 | clean:
|
30 | rm -f jade.js
|
31 | rm -f jade.min.js
|
32 |
|
33 | .PHONY: test benchmark clean
|