mirror of
https://github.com/containers/podman
synced 2024-10-20 17:23:30 +00:00
3b9177995e
Instead of using the main module we should vendor the test tools in a different directory. That way we do not add extra dependencies to the main module which can be problemetic for packages or other users. This is already done in buildah so this makes us more consitent. Signed-off-by: Paul Holzinger <pholzing@redhat.com>
32 lines
559 B
Makefile
32 lines
559 B
Makefile
GO := go
|
|
GO_BUILD=$(GO) build
|
|
|
|
BUILDDIR := build
|
|
|
|
all: $(BUILDDIR)
|
|
|
|
.PHONY: vendor
|
|
vendor:
|
|
$(GO) mod tidy
|
|
$(GO) mod vendor
|
|
$(GO) mod verify
|
|
|
|
.PHONY: clean
|
|
clean:
|
|
rm -rf $(BUILDDIR)
|
|
|
|
.PHONY: $(BUILDDIR)
|
|
$(BUILDDIR): \
|
|
$(BUILDDIR)/goimports \
|
|
$(BUILDDIR)/go-md2man \
|
|
$(BUILDDIR)/git-validation
|
|
|
|
$(BUILDDIR)/goimports:
|
|
$(GO_BUILD) -o $@ ./vendor/golang.org/x/tools/cmd/goimports
|
|
|
|
$(BUILDDIR)/go-md2man:
|
|
$(GO_BUILD) -o $@ ./vendor/github.com/cpuguy83/go-md2man/v2
|
|
|
|
$(BUILDDIR)/git-validation:
|
|
$(GO_BUILD) -o $@ ./vendor/github.com/vbatts/git-validation
|