diff options
author | Paul Holzinger <pholzing@redhat.com> | 2022-05-04 14:17:02 +0200 |
---|---|---|
committer | Paul Holzinger <pholzing@redhat.com> | 2022-05-04 17:11:43 +0200 |
commit | 3b9177995e0124beb064ef8615ba9a2ae7ca4f4b (patch) | |
tree | 9661f41f6ad6024874f778a09b16e96aaefb48c3 /test/tools/Makefile | |
parent | 9166894c696582ee37893ce92a694ba227744fa0 (diff) | |
download | podman-3b9177995e0124beb064ef8615ba9a2ae7ca4f4b.tar.gz podman-3b9177995e0124beb064ef8615ba9a2ae7ca4f4b.tar.bz2 podman-3b9177995e0124beb064ef8615ba9a2ae7ca4f4b.zip |
vendor test tools in submodule
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>
Diffstat (limited to 'test/tools/Makefile')
-rw-r--r-- | test/tools/Makefile | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/test/tools/Makefile b/test/tools/Makefile new file mode 100644 index 000000000..ab2ef740f --- /dev/null +++ b/test/tools/Makefile @@ -0,0 +1,31 @@ +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 |