2022-05-05 00:51:24 +03:00
|
|
|
LDFLAGSSTRING +=-X main.GitCommit=$(GITCOMMIT)
|
|
|
|
LDFLAGSSTRING +=-X main.GitDate=$(GITDATE)
|
|
|
|
LDFLAGSSTRING +=-X main.GitVersion=$(GITVERSION)
|
|
|
|
LDFLAGS := -ldflags "$(LDFLAGSSTRING)"
|
|
|
|
|
|
|
|
proxyd:
|
|
|
|
go build -v $(LDFLAGS) -o ./bin/proxyd ./cmd/proxyd
|
|
|
|
.PHONY: proxyd
|
|
|
|
|
|
|
|
fmt:
|
|
|
|
go mod tidy
|
|
|
|
gofmt -w .
|
|
|
|
.PHONY: fmt
|
|
|
|
|
|
|
|
test:
|
2023-10-06 00:42:40 +03:00
|
|
|
go test -v ./...
|
2022-05-05 00:51:24 +03:00
|
|
|
.PHONY: test
|
|
|
|
|
|
|
|
lint:
|
|
|
|
go vet ./...
|
2023-10-06 00:42:40 +03:00
|
|
|
.PHONY: test
|
2024-06-05 02:19:54 +03:00
|
|
|
|
|
|
|
test-fallback:
|
|
|
|
go test -v ./... -test.run ^TestFallback$
|
|
|
|
.PHONY: test-fallback
|