-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
24 lines (21 loc) · 964 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
check_nasm:
@if [ "$(shell uname)" = "Linux" ]; then \
if ! command -v nasm > /dev/null; then \
echo "Installing nasm..." && \
sudo apt-get update && \
sudo apt-get install -y nasm; \
else \
echo "nasm is already installed"; \
fi \
fi
SPEC_VERSION ?= v1.5.0-alpha.8
# Update deps target to include nasm check
deps: check_nasm
@echo "Installing dependencies"
@git submodule update --init --recursive
@cd bls && make -f Makefile.onelib ETH_CFLAGS=-DBLS_ETH LIB_DIR=lib
deps_test:
mkdir -p consensus-spec-tests
wget https://github.com/ethereum/consensus-spec-tests/releases/download/$(SPEC_VERSION)/general.tar.gz -O - | tar -xz -C consensus-spec-tests
wget https://github.com/ethereum/consensus-spec-tests/releases/download/$(SPEC_VERSION)/minimal.tar.gz -O - | tar -xz -C consensus-spec-tests
wget https://github.com/ethereum/consensus-spec-tests/releases/download/$(SPEC_VERSION)/mainnet.tar.gz -O - | tar -xz -C consensus-spec-tests