forked from op-rs/3074-invokers
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
49 lines (42 loc) · 1.14 KB
/
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
46
47
48
49
all: build-forge-patch build-solc-patch
.PHONY: build-forge-patch
build-forge-patch:
@echo "Building forge patch..."
@cd forge-3074-patch && \
cargo build --bin forge --release && \
mkdir -p ../bin && \
cp target/release/forge ../bin/forge
@echo "Done, patched forge binary is located at `bin/forge` relative to the project root"
.PHONY: build-solc-patch
build-solc-patch:
@echo "Building solc patch..."
@cd solidity && \
mkdir -p build && \
cd build && \
cmake .. && \
make && \
mkdir -p ../../bin && \
cp solc/solc ../../bin/solc
@echo "Done, patched solc binary is located at `bin/solc` relative to the project root"
.PHONY: install-huff
install-huff:
@echo "Installing huff..."
@curl -L get.huff.sh | bash
@huffup
@echo "Done!"
.PHONY: test
test:
@[[ ! -a ./bin/forge ]] && make build-forge-patch || true
@./bin/forge test -vvv
.PHONY: build
build:
@[[ ! -a ./bin/forge ]] && make build-forge-patch || true
@./bin/forge build
.PHONY: fmt
fmt:
@[[ ! -a ./bin/forge ]] && make build-forge-patch || true
@./bin/forge fmt
.PHONY: snapshot
snapshot:
@[[ ! -a ./bin/forge ]] && make build-forge-patch || true
@./bin/forge snapshot