Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,22 @@ ALL_SRC := $(shell find . -name "*.go")
ALL_SRC += go.mod

all: bins fmt lint
bins: s2s-proxy
bins: s2s-proxy configconverter
clean: clean-bins clean-tests

clean-bins:
@printf $(COLOR) "Delete old binaries...\n"
@rm -f ./bins/*

# Binary target
# Binary targets
s2s-proxy: $(ALL_SRC)
@printf $(COLOR) "Build s2s-proxy with CGO_ENABLED=$(CGO_ENABLED) for $(GOOS)/$(GOARCH)...\n"
GOOS=$(GOOS) GOARCH=$(GOARCH) CGO_ENABLED=$(CGO_ENABLED) go build -o ./bins/s2s-proxy ./cmd/proxy

configconverter: $(ALL_SRC)
@printf $(COLOR) "Build configconverter with CGO_ENABLED=$(CGO_ENABLED) for $(GOOS)/$(GOARCH)...\n"
GOOS=$(GOOS) GOARCH=$(GOARCH) CGO_ENABLED=$(CGO_ENABLED) go build -o ./bins/configconverter ./cmd/tools/configconverter

update-tools:
# When changing the golangci-lint version, update the version in .github/workflows/pull-request.yml
$(GO_GET_TOOL) github.com/golangci/golangci-lint/v2/cmd/golangci-lint@v2.8
Expand Down
Loading