-
Notifications
You must be signed in to change notification settings - Fork 4
/
Makefile
30 lines (21 loc) · 762 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
ZOMBINET_VERSION := v1.3.22
UNAME_S := $(shell uname -s)
ZOMBINET_PATHS := ${PATH}:${PWD}/zombienet/bin
touch_done=@mkdir -p $(@D) && touch $@;
ifeq ($(UNAME_S), Linux)
ZOMBINET_BIN := zombienet-linux-x64
endif
ifeq ($(UNAME_S), Darwin)
ZOMBINET_BIN := zombienet-macos
endif
all: download-zombienet
download-zombienet: $(ZOMBINET_BIN:%=zombienet/bin/%)
zombienet/bin/%:
@echo "Downloading https:/paritytech/zombienet/releases/download/${ZOMBINET_VERSION}/$*"
@curl -L -o zombienet/bin/$* https:/paritytech/zombienet/releases/download/${ZOMBINET_VERSION}/$*
@chmod +x zombienet/bin/$*
export PATH = $(ZOMBINET_PATHS)
start: all
@zombienet/bin/${ZOMBINET_BIN} spawn zombienet/config.toml
build-release:
@cargo build --release