forked from microsoft/devicescript
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
59 lines (44 loc) · 1.19 KB
/
Makefile
File metadata and controls
59 lines (44 loc) · 1.19 KB
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
CLI = ./cli/devicescript
all: em comp
comp:
yarn build
comp-fast:
yarn build-fast
native native1 em update-dist:
$(MAKE) -C runtime $@
test-c: native comp-fast
$(CLI) crun devs/run-tests/all.ts
test-em: em comp-fast
yarn test
test: test-c test-em
vscode-pkg:
cd vscode && yarn package
clean:
rm -rf built compiler/built compiler/src/prelude.ts cli/built dap/built vscode/built
$(MAKE) -C runtime clean
full-clean: clean
rm -rf node_modules compiler/node_modules runtime/*/node_modules
check:
$(MAKE) clean
$(MAKE) docker
$(MAKE) all
$(MAKE) test
bc:
cd bytecode && ./run.sh
node runtime/scripts/ds-builtin-proto.js \
runtime/devicescript/devs_bytecode.h \
runtime/devicescript/impl_*.c
clang-format -i runtime/devicescript/protogen.c
$(CLI) dcfg runtime/boards/native/native.board.json --update runtime/posix/native_cfg.c
clang-format -i runtime/posix/native_cfg.c
$(CLI) dcfg runtime/boards/wasm/wasm.board.json --update runtime/posix/wasm_cfg.c
clang-format -i runtime/posix/wasm_cfg.c
regen: bc
cd ./dcfg && ./regen.sh
yarn boards
specs spec:
$(MAKE) -C runtime/jacdac-c/jacdac
docker:
$(MAKE) clean
docker run -v `pwd`:/src -w /src library/gcc make native
$(MAKE) clean