forked from chainapsis/osmosis
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
45 lines (37 loc) · 911 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
.PHONY: clean buildpath osmosis proto docs
all: osmosis proto
clean:
rm -rf ./build
buildpath:
mkdir -p build
osmosis: clean buildpath
@echo
@echo "=========== Build Osmosis ================"
@echo
go build -o ./build/osmosisd ./cmd/osmosisd
@echo
@echo "=========== Build Complete ==============="
@echo
proto:
@echo
@echo "=========== Generate Message ============"
@echo
./scripts/generate-proto.sh
@echo
@echo "=========== Generate Complete ============"
@echo
docs:
@echo
@echo "=========== Generate Message ============"
@echo
./scripts/generate-docs.sh
statik -src=client/docs/static -dest=client/docs -f -m
@if [ -n "$(git status --porcelain)" ]; then \
echo "\033[91mSwagger docs are out of sync!!!\033[0m";\
exit 1;\
else \
echo "\033[92mSwagger docs are in sync\033[0m";\
fi
@echo
@echo "=========== Generate Complete ============"
@echo