-
Notifications
You must be signed in to change notification settings - Fork 167
/
Makefile
45 lines (34 loc) · 935 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
36
37
38
39
40
41
42
43
44
45
.DEFAULT_GOAL := build
ROOT=..
include $(ROOT)/DEPS
.PHONY: build-js-deps
build-js-deps:
(cd js-deps && $(MAKE) build)
.PHONY: build-stdlib
build-stdlib:
(cd stdlib && $(MAKE) build)
.PHONY: build-runner
build-runner:
(cd runner && $(MAKE) build)
.PHONY: build-rpc-server
build-rpc-server:
(cd rpc-server && $(MAKE) build)
.PHONY: build-react-runner
build-react-runner:
(cd react-runner && $(MAKE) build)
.PHONY: build
build: build-js-deps build-stdlib build-runner build-rpc-server build-react-runner
.PHONY: build-m1
build-m1: build
# faster build for local tests; ignores react-runner
.PHONY: b
b: build-js-deps build-stdlib build-runner build-rpc-server
.PHONY: test
test: build
(cd stdlib && $(MAKE) check)
# No need to push js-deps or stdlib
.PHONY: push
push:
$(ROOT)/scripts/docker-push.sh reachsh/runner
$(ROOT)/scripts/docker-push.sh reachsh/react-runner
$(ROOT)/scripts/docker-push.sh reachsh/rpc-server