forked from toshok/echojs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
54 lines (40 loc) · 1.32 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
TOP=$(shell pwd)
include $(TOP)/build/config.mk
SUBDIRS=external-deps node-compat node-llvm ejs-llvm lib runtime
# run git submodule magic if somebody is antsy and doesn't type the magic incantation before typing make
all-local::
@if [ ! -f pcre/configure.ac ]; then \
git submodule init; \
git submodule update; \
fi
check:
$(MAKE) -C test check
bootstrap: stage3
MODULE_DIRS = --moduledir $(TOP)/node-compat --moduledir $(TOP)/ejs-llvm
stage1: ejs-es6.js.exe.stage1
@cp ejs-es6.js.exe.stage1 ejs.exe
@ls -l ejs.exe
@echo DONE
stage2: ejs-es6.js.exe.stage2
@cp ejs-es6.js.exe.stage2 ejs.exe
@ls -l ejs.exe
@echo DONE
stage3: ejs-es6.js.exe.stage3
@cp ejs-es6.js.exe.stage3 ejs.exe
@ls -l ejs.exe
@echo DONE
ejs-es6.js.exe.stage1:
@echo Building stage 1
@time ./ejs --leave-temp $(MODULE_DIRS) ejs-es6.js
@mv ejs-es6.js.exe ejs-es6.js.exe.stage1
ejs-es6.js.exe.stage2: ejs-es6.js.exe.stage1
@echo Building stage 2
@time ./ejs-es6.js.exe.stage1 --leave-temp $(MODULE_DIRS) ejs-es6.js
@mv ejs-es6.js.exe ejs-es6.js.exe.stage2
ejs-es6.js.exe.stage3: ejs-es6.js.exe.stage2
@echo Building stage 3
@time ./ejs-es6.js.exe.stage2 --leave-temp $(MODULE_DIRS) ejs-es6.js
@mv ejs-es6.js.exe ejs-es6.js.exe.stage3
echo-command-line:
@echo ./ejs.exe --leave-temp $(MODULE_DIRS) ejs-es6.js
include $(TOP)/build/build.mk