forked from Layr-Labs/eigenlayer-contracts
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
45 lines (32 loc) · 979 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
CONTAINER_NAME = eigenlayer-contracts
.PHONY: install-hooks
install-hooks:
cp bin/pre-commit.sh .git/hooks/pre-commit
.PHONY: install-deps
install-deps:
./bin/install-deps.sh
.PHONY: deps
deps: install-hooks install-deps
.PHONY: compile
compile:
forge b
.PHONY: bindings
bindings: compile
./bin/compile-bindings.sh
.PHONY: all
all: compile bindings
gha:
git config --global --add safe.directory "*"
forge install
forge b
./bin/compile-bindings.sh
docker:
docker build --progress=plain -t ${CONTAINER_NAME}:latest .
compile-in-docker:
docker run -v $(PWD):/build -w /build --rm -it ${CONTAINER_NAME}:latest bash -c "make compile"
bindings-in-docker:
docker run -v $(PWD):/build -w /build --rm -it ${CONTAINER_NAME}:latest bash -c "make bindings"
all-in-docker:
docker run -v $(PWD):/build -w /build --rm -it ${CONTAINER_NAME}:latest bash -c "make all"
gha-docker:
docker run -v $(PWD):/build -w /build --rm -i ${CONTAINER_NAME}:latest bash -c "make gha"