fix(makefile): Build static binaries

This commit is contained in:
jolts 2025-02-04 12:21:20 +02:00
parent 685b156312
commit dc4cd2b177
Signed by untrusted user who does not match committer: xlarp
GPG key ID: 173C05E221B5DB30

View file

@ -46,13 +46,13 @@ build_windows_386:
$(MAKE) build_single_windows GOOS=windows GOARCH=386
build_single_windows:
go build -o $(BIN_DIR)/$(BIN_NAME)-$(GOOS)-$(GOARCH).exe
CGO_ENABLED=0 go build -o $(BIN_DIR)/$(BIN_NAME)-$(GOOS)-$(GOARCH).exe
build_single:
go build -o $(BIN_DIR)/$(BIN_NAME)-$(GOOS)-$(GOARCH)
CGO_ENABLED=0 go build -o $(BIN_DIR)/$(BIN_NAME)-$(GOOS)-$(GOARCH)
debug:
go build -tags debug -gcflags "all=-N -l" -o $(BIN_DIR)/$(BIN_NAME)-$(GOOS)-$(GOARCH)-debug
clean:
@rm -rf $(BIN_DIR)
@rm -rf $(BIN_DIR)