Files
podman/test/tools/Makefile
Kir Kolyshkin 9d4e820264 Use golangci-lint fmt for pkg/bindings
golangci-lint v2 introduced a new command, fmt, which runs configured
formatters (see formatters in .golangci.yml).

Use this for generated files. Drop separate goimports binary.

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
2025-04-03 10:41:14 -07:00

35 lines
673 B
Makefile

GO := go
GO_BUILD=$(GO) build
BUILDDIR := build
SOURCES := $(shell find . -name '*.go')
all: $(BUILDDIR)
.PHONY: vendor
vendor:
$(GO) mod tidy
$(GO) mod vendor
$(GO) mod verify
$(GO) mod edit -toolchain none
.PHONY: clean
clean:
rm -rf $(BUILDDIR)
.PHONY: $(BUILDDIR)
$(BUILDDIR): \
$(BUILDDIR)/go-md2man \
$(BUILDDIR)/git-validation \
$(BUILDDIR)/swagger
$(BUILDDIR)/go-md2man: $(SOURCES)
$(GO_BUILD) -o $@ ./vendor/github.com/cpuguy83/go-md2man/v2
$(BUILDDIR)/git-validation: $(SOURCES)
$(GO_BUILD) -o $@ ./vendor/github.com/vbatts/git-validation
$(BUILDDIR)/swagger: $(SOURCES)
$(GO_BUILD) -o $@ ./vendor/github.com/go-swagger/go-swagger/cmd/swagger