-
Notifications
You must be signed in to change notification settings - Fork 32
/
Copy pathMakefile
37 lines (31 loc) · 895 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
all: build
SKIP_CONTRACTS=n
SKIP_EXAMPLES=n
SKIP_GENESIS=n
.PHONY: build
build:
clear
if [ "$(SKIP_EXAMPLES)" = "n" ]; then cd examples && $(MAKE); fi
if [ "$(SKIP_CONTRACTS)" = "n" ]; then cd crates/contracts && $(MAKE); fi
if [ "$(SKIP_GENESIS)" = "n" ]; then cd crates/genesis && $(MAKE); fi
.PHONY: clean
clean:
clear
if [ "$(SKIP_EXAMPLES)" = "n" ]; then cd examples && $(MAKE) clean; fi
cargo clean
.PHONY: test
test:
clear
cargo test --no-fail-fast -q
.PHONY: run_fluent_node
run_fluent_node:
clear
cd ../fluent/; $(MAKE) fluent_clean_datadir; $(MAKE) fluent_run | tee -i ../fluentbase/tmp/log.txt
.PHONY: build_contracts_and_run_fluent_node
build_contracts_and_run_fluent_node:
clear
$(MAKE)
cd ../fluent/; $(MAKE) fluent_clean_datadir; $(MAKE) fluent_build
(sleep 1; notify-send "fluent" "ready to process requests" || true)&
mkdir -p tmp
$(MAKE) run_fluent_node