-
Notifications
You must be signed in to change notification settings - Fork 10
/
Makefile
52 lines (41 loc) · 921 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
46
47
48
49
50
51
52
IGNITE_RUN = docker run --rm -ti --volume $(PWD):/apps ignitehq/cli:latest
UID := $(shell id --user)
GID := $(shell id --group)
BIN = build/sourcehubd
DEMO_BIN = build/token-protocol-demo
.PHONY: build
build:
go build -o ${BIN} ./cmd/sourcehubd
.PHONY: install
install:
go install ./cmd/sourcehubd
.PHONY: proto
proto:
ignite generate proto-go
.PHONY: test
test:
go test ./...
.PHONY: test\:all
test\:all: test_env_generator
scripts/run-test-matrix
.PHONY: simulate
simulate:
ignite chain simulate
.PHONY: fmt
fmt:
gofmt -w .
buf format --write
.PHONY: run
run: build
${BIN} start
.PHONY: docs
docs:
pkgsite -http 0.0.0.0:8080
.PHONY: image
# builds a production docker image in the local system and tags it with
# the ID of the current git HEAD
image:
scripts/build-docker-image.sh
.PHONY: test_env_generator
test_env_generator:
go build -o build/test_env_generator cmd/test_env_generator/main.go