forked from microsoft/devicescript
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
38 lines (26 loc) · 809 Bytes
/
Makefile
File metadata and controls
38 lines (26 loc) · 809 Bytes
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
CLI = ./cli/devicescript
all: em comp
comp: compiler/built/compiler/src/devicescript.js
compiler/built/compiler/src/devicescript.js: $(wildcard compiler/src/*.ts) $(wildcard compiler/lib/*.ts)
yarn build
comp-fast:
cd compiler && node build.js --fast
native native1 em update-dist:
$(MAKE) -C runtime $@
test-c: native comp
$(CLI) crun devs/run-tests/basic.ts
test-em: em comp
yarn test
test: test-c test-em
clean:
rm -rf built compiler/built compiler/src/prelude.ts cli/built
$(MAKE) -C runtime clean
full-clean: clean
rm -rf node_modules compiler/node_modules runtime/*/node_modules
check:
$(MAKE) clean
$(MAKE) all
$(MAKE) test
regen:
node runtime/jacdac-c/scripts/ds-builtin-proto.js runtime/jacdac-c/devicescript/impl_*.c
clang-format -i runtime/jacdac-c/devicescript/protogen.c