-
Notifications
You must be signed in to change notification settings - Fork 97
Expand file tree
/
Copy pathMakefile
More file actions
41 lines (33 loc) · 697 Bytes
/
Makefile
File metadata and controls
41 lines (33 loc) · 697 Bytes
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
JS_FILES = \
src/start.js \
src/aight.js \
src/before-ie8.js \
lib/ie8/src/ie8.js \
src/after-ie8.js \
lib/dom4/src/dom4.js \
src/css-om.js \
src/createElementNS.js \
lib/html5shiv/src/html5shiv.js \
src/end.js \
lib/es5-shim/es5-shim.js \
lib/es5-shim/es5-sham.js
JS_COMPILER ?= uglifyjs
all: \
aight.js \
aight.min.js \
d3/d3.ie8.js \
d3/d3.ie8.min.js
aight.js: $(JS_FILES)
cat $(JS_FILES) > $@
d3/d3.ie8.js: d3/d3.js
cat $^ | ./bin/aight >> $@
cat src/d3.ie8.js >> $@
%.min.js: %.js
$(JS_COMPILER) $< > $@
d3/d3.js:
curl http://d3js.org/d3.v3.js > $@
clean:
rm -f aight.js aight.min.js
rm -f d3/d3.ie8.js d3/d3.ie8.min.js
distclean: clean
rm -f d3/d3.js