forked from svaarala/duktape
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
80 lines (66 loc) · 2.62 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
NODE:=$(shell which nodejs node | head -1)
# Try to get a useful default --source-dirs which works both in the Duktape
# repo and in the distributable. We don't want to add '..' because it would
# scan a lot of undesired files in the Duktape repo (e.g. test262 testcases).
ifeq ($(wildcard ../tests/ecmascript/*.js),)
SOURCEDIRS:=../
else
SOURCEDIRS:=../tests/ecmascript
endif
.PHONY: all
all: run
.PHONY: run
run: node_modules static/socket.io-1.2.0.js static/jquery-1.11.1.min.js static/reset.css static/jquery-ui.min.js static/jquery-ui.min.css static/images
$(NODE) duk_debug.js --source-dirs=$(SOURCEDIRS)
.PHONY: runproxy
runproxy: node_modules static/socket.io-1.2.0.js static/jquery-1.11.1.min.js static/reset.css static/jquery-ui.min.js static/jquery-ui.min.css static/images
$(NODE) duk_debug.js --json-proxy
.PHONY: clean
clean:
@rm -f static/socket.io-1.2.0.js
@rm -f static/jquery-1.11.1.min.js
@rm -f static/jquery.syntaxhighlighter.min.js
@rm -f static/jquery.snippet.min.js
@rm -f static/jquery.snippet.min.css
@rm -f static/prefixfree.min.js
@rm -f static/reset.css
@rm -f static/jquery-ui.min.js
@rm -f static/jquery-ui.min.css
@rm -rf static/images
@rm -f jquery-ui-1.11.2.zip
@rm -rf jquery-ui-1.11.2
@rm -rf node_modules
node_modules:
npm install
static/socket.io-1.2.0.js:
wget -O $@ https://cdn.socket.io/socket.io-1.2.0.js
static/jquery-1.11.1.min.js:
wget -O $@ http://code.jquery.com/jquery-1.11.1.min.js
# http://balupton.github.io/jquery-syntaxhighlighter/demo/
static/jquery.syntaxhighlighter.min.js:
wget -O $@ http://balupton.github.com/jquery-syntaxhighlighter/scripts/jquery.syntaxhighlighter.min.js
# http://steamdev.com/snippet/
static/jquery.snippet.min.js:
wget -O $@ http://steamdev.com/snippet/js/jquery.snippet.min.js
static/jquery.snippet.min.css:
wget -O $@ http://steamdev.com/snippet/css/jquery.snippet.min.css
# http://prismjs.com/
# http://prismjs.com/plugins/line-highlight/
#
# XXX: prism download manually?
# https://raw.github.com/LeaVerou/prefixfree/gh-pages/prefixfree.min.js
static/prefixfree.min.js:
wget -O $@ https://raw.github.com/LeaVerou/prefixfree/gh-pages/prefixfree.min.js
# http://meyerweb.com/eric/tools/css/reset/
static/reset.css:
wget -O $@ http://meyerweb.com/eric/tools/css/reset/reset.css
jquery-ui-1.11.2.zip:
wget -O $@ http://jqueryui.com/resources/download/jquery-ui-1.11.2.zip
jquery-ui-1.11.2: jquery-ui-1.11.2.zip
unzip $<
static/jquery-ui.min.js: jquery-ui-1.11.2
cp jquery-ui-1.11.2/jquery-ui.min.js $@
static/jquery-ui.min.css: jquery-ui-1.11.2
cp jquery-ui-1.11.2/jquery-ui.min.css $@
static/images: jquery-ui-1.11.2
cp -r jquery-ui-1.11.2/images static/