-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathMakefile
44 lines (33 loc) · 801 Bytes
/
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
41
42
43
44
all: dominate.js dominate.min.js
dominate.js: \
src/dominate.js \
build/utils.js \
build/format.js \
build/event.js \
build/html.js \
build/tags.js \
build/io.js \
build/binding.js \
build/wrapper.js \
build/api.js \
Makefile
dominate.js:
cat $(filter %.js,$^) > $@
%.min.js: %.js
java -Xmx64m -XX:MaxPermSize=32m -jar lib/compiler.jar --js $< > $@
build/%.js: src/%.js
@mkdir -p build
@cat src/_header.js > $@
cat $< >> $@
@cat src/_footer.js >> $@
@gjslint $@ | grep 'E:[0-9]\{4\}' \
| grep -v -f lint_ignore \
| python -c 'import sys;l=list(sys.stdin);map(sys.stdout.write,l);sys.exit(bool(l))'
clean:
-rm build/* -r
-rm dominate.js dominate.min.js
.PHONY: clean
.DELETE_ON_ERROR:
depends:
sudo -H pip install closure_linter
sudo apt-get install openjdk-7-jdk