Skip to content

Commit c399783

Browse files
committed
Add Makefile for relay
1 parent 0702889 commit c399783

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

mithril-relay/Makefile

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
.PHONY: all build test check debug run help doc
2+
3+
CARGO = cargo
4+
5+
all: test build
6+
7+
build:
8+
${CARGO} build --release
9+
cp ../target/release/mithril-relay .
10+
11+
test:
12+
${CARGO} test
13+
14+
check:
15+
${CARGO} check --release --all-features --all-targets
16+
${CARGO} clippy --release --all-features --all-targets
17+
${CARGO} fmt --check
18+
19+
help:
20+
@${CARGO} run -- -h
21+
22+
doc:
23+
${CARGO} doc --no-deps --open
24+
25+
docker-build:
26+
cd ../ && docker build -t mithril/mithril-relay -f mithril-relay/Dockerfile .
27+
28+
docker-build-ci: build
29+
cd ../ && docker build -t mithril/mithril-relay -f mithril-relay/Dockerfile.ci --build-arg DOCKER_IMAGE_FROM .
30+
31+
docker-run:
32+
docker run --rm --name='mithril-relay' mithril/mithril-relay

0 commit comments

Comments
 (0)