25 lines
428 B
Makefile
25 lines
428 B
Makefile
all: release
|
|
|
|
dependencies:
|
|
go mod tidy
|
|
|
|
build: dependencies
|
|
go build -x -v
|
|
|
|
release: dependencies
|
|
go build -x -v -ldflags "-s -w"
|
|
|
|
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"
|