Permalink
Newer
Older
100644 43 lines (30 sloc) 831 Bytes
Jun 16, 2010
1
2
SRC = $(shell find lib -name "*.js" -type f)
3
UGLIFY = $(shell find node_modules -name "uglifyjs" -type f)
4
UGLIFY_FLAGS = --no-mangle
5
REPORTER = dot
7
all: jade.min.js runtime.min.js
8
Jun 16, 2010
9
test:
10
@./node_modules/.bin/mocha \
Mar 10, 2012
11
--reporter $(REPORTER)
12
13
test-cov: lib-cov
14
JADE_COV=1 $(MAKE) test REPORTER=html-cov > coverage.html
15
16
lib-cov:
17
jscoverage lib lib-cov
18
Aug 26, 2010
19
benchmark:
20
@node support/benchmark
Aug 26, 2010
21
22
jade.js: $(SRC)
23
@node support/compile.js $^
24
25
jade.min.js: jade.js
26
@$(UGLIFY) $(UGLIFY_FLAGS) $< > $@ \
27
&& du -bh jade.js jade.min.js
29
runtime.js: lib/runtime.js
30
@cat support/head.js $< support/foot.js > $@
31
32
runtime.min.js: runtime.js
33
@$(UGLIFY) $(UGLIFY_FLAGS) $< > $@ \
34
&& du -bh runtime.js runtime.min.js
36
clean:
37
rm -f jade.js
38
rm -f jade.min.js
39
rm -f runtime.js
40
rm -f runtime.min.js
Apr 14, 2012
42
.PHONY: test-cov test benchmark clean