-
Notifications
You must be signed in to change notification settings - Fork 5
/
Makefile
31 lines (25 loc) · 862 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
# To build the gcosmos binary:
# make build
# Everything in the above consecutive sequence of comments is printed out as the output of "make help"
# (with leading "# " stripped).
# ("make help" is also the default target, so just running "make" does the same as "make help").
.PHONY: help
help:
@sed -n '/^#/p; /^[^#]/q; /^$$/q' Makefile | sed 's/^# //'
# Script to update the local copy of the SDK and apply any patches.
.PHONY: deps
deps:
$(info Makefile: it should be safe to ignore any warnings during this step)
./_cosmosvendor/sync_sdk.bash
# Just build the gcosmos binary and place it in the current directory.
# (The binary is already in .gitignore.)
.PHONY: build
build: deps
go build .
@echo >&2 executable saved to ./gcosmos
.PHONY: install
install: deps
go install
.PHONY: testnet-start
testnet-start: build
./scripts/run_gcosmos.sh