-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathMakefile
35 lines (24 loc) · 977 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
ifeq ($(BOOT),1)
NODE_MAKE = node make.js _boot
else
NODE_MAKE = node make.js
endif
all: compiler
reader.js: reader.ol
$(NODE_MAKE) _current_runtime reader.ol > reader2.js && mv reader2.js reader.js
ast.js: ast.ol
$(NODE_MAKE) _current_runtime ast.ol > ast2.js && mv ast2.js ast.js
compiler.js: compiler.ol
$(NODE_MAKE) _current_runtime compiler.ol > compiler2.js && mv compiler2.js compiler.js
backends/js.js: backends/js.ol
$(NODE_MAKE) _current_runtime backends/js.ol > backends/js2.js && mv backends/js2.js backends/js.js
test.js: test.ol
$(NODE_MAKE) _current_runtime _with_eval test.ol > test2.js && mv test2.js test.js
cps.js: cps.ol
$(NODE_MAKE) _current_runtime _with_eval cps.ol > cps2.js && mv cps2.js cps.js
runtime.js: runtime.ol
$(NODE_MAKE) _no_runtime runtime.ol > runtime2.js && mv runtime2.js runtime.js
compiler: runtime.js compiler.js reader.js ast.js backends/js.js test.js cps.js
test: compiler
node test syntax.ol
node test core.ol