-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
40 lines (28 loc) · 1.24 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
ALL = ecmascript3_commonjs/lang.js lua/lang.lua
all: $(ALL)
.PHONY: all
clean:
rm -fr $(ALL) */node_modules
.PHONY: clean
test: test_ecmascript3 test_lua
.PHONY: test
test_ecmascript3: ecmascript3_commonjs/node_modules
cd ecmascript3_commonjs && yarn test
.PHONY: test_ecmascript3
test_lua: lua/node_modules
cd lua && yarn test
.PHONY: test_lua
typescript/node_modules: typescript/yarn.lock
cd typescript && yarn && touch node_modules/
ecmascript3_commonjs/node_modules: ecmascript3_commonjs/yarn.lock
cd ecmascript3_commonjs && yarn && touch node_modules/
lua/node_modules: lua/yarn.lock
cd lua && yarn && touch node_modules/
lua/lang.ts: typescript/lang.ts.d/lua.d/*.ts typescript/lang.ts.d/*.ts
cat typescript/lang.ts.d/lua.d/*.ts typescript/lang.ts.d/*.ts > lua/lang.ts
lua/lang.lua: lua/tsconfig.json lua/lang.ts lua/node_modules
cd lua && ./node_modules/.bin/tstl
ecmascript3_commonjs/lang.ts: typescript/lang.ts.d/ecmascript3.d/*.ts typescript/lang.ts.d/*.ts
cat typescript/lang.ts.d/ecmascript3.d/*.ts typescript/lang.ts.d/*.ts > ecmascript3_commonjs/lang.ts
ecmascript3_commonjs/lang.js: ecmascript3_commonjs/tsconfig.json ecmascript3_commonjs/lang.ts ecmascript3_commonjs/node_modules
cd ecmascript3_commonjs && ./node_modules/.bin/tsc