carpy-breakout/Makefile

31 lines
539 B
Makefile

all: release
dependencies:
go mod tidy
build: linter dependencies
go build -x -v
release: linter dependencies
go build -x -v -ldflags "-s -w"
linter:
golangci-lint run
cross_windows:
export CGO_ENABLED=1
export CC=x86_64-w64-mingw32-gcc
export GOOS=windows
export GOARCH=amd64
go build -x -v -ldflags "-s -w"
cross_windows_x86:
export CGO_ENABLED=1
export CC=i686-w64-mingw32-gcc
export GOOS=windows
export GOARCH=386
go build -x -v -ldflags "-s -w"
goimports_everything:
find . -name "*.go" -exec goimports -w {} \;