wallet/Makefile
Anton Nesterov b19bf34e5f
[init]
2024-08-31 16:54:43 +02:00

35 lines
1.1 KiB
Makefile

uname := $(shell uname)
test:
go test -v ./cmd/keypair
build-tools:
GOOS=linux GOARCH=amd64 go build -o bin/keypair cmd/keypair/main.go
GOOS=linux GOARCH=arm64 go build -o bin/keypair.arm64 cmd/keypair/main.go
GOOS=darwin GOARCH=arm64 go build -o bin/keypair.m2 cmd/keypair/main.go
GOOS=darwin GOARCH=amd64 go build -o bin/keypair.macos cmd/keypair/main.go
GOOS=windows GOARCH=amd64 go build -o bin/keypair.exe cmd/keypair/main.go
build:
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o build/custodial main.go
chmod +x build/custodial
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o build/agent agent/main.go
chmod +x build/agent
#GOOS=windows GOARCH=amd64 go build -o build/custodial.exe main.go
#GOOS=darwin GOARCH=amd64 go build -o build/custodial.macos main.go
setup:
curl -sSfL https://raw.githubusercontent.com/cosmtrek/air/master/install.sh | sh -s -- -b $(shell go env GOPATH)/bin
go install github.com/swaggo/swag/cmd/swag@latest
# ifeq ($(uname), Linux)
# @echo "Linux: trying to install ubuntu dependencies"
# sudo apt-get install build-essential
# endif
develop:
air -c .air.toml
doc:
swag init