summaryrefslogtreecommitdiff
path: root/vendor/github.com/seccomp/containers-golang/Makefile
diff options
context:
space:
mode:
authorGiuseppe Scrivano <gscrivan@redhat.com>2020-05-20 22:50:26 +0200
committerGiuseppe Scrivano <gscrivan@redhat.com>2020-05-21 16:16:09 +0200
commite51bccec0ca8d23c2b70006f1557f106b7722ee4 (patch)
tree45fed7ae9ef0f421ffe4dbffb06093142da0ac0a /vendor/github.com/seccomp/containers-golang/Makefile
parent8b49d10550d32e066bc834768a44d6c848f4db3e (diff)
downloadpodman-e51bccec0ca8d23c2b70006f1557f106b7722ee4.tar.gz
podman-e51bccec0ca8d23c2b70006f1557f106b7722ee4.tar.bz2
podman-e51bccec0ca8d23c2b70006f1557f106b7722ee4.zip
vendor: update seccomp/containers-golang to v0.4.1
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
Diffstat (limited to 'vendor/github.com/seccomp/containers-golang/Makefile')
-rw-r--r--vendor/github.com/seccomp/containers-golang/Makefile22
1 files changed, 18 insertions, 4 deletions
diff --git a/vendor/github.com/seccomp/containers-golang/Makefile b/vendor/github.com/seccomp/containers-golang/Makefile
index 88569e87b..2d91917f9 100644
--- a/vendor/github.com/seccomp/containers-golang/Makefile
+++ b/vendor/github.com/seccomp/containers-golang/Makefile
@@ -1,3 +1,5 @@
+export GO111MODULE=off
+
TAGS ?= seccomp
BUILDFLAGS := -tags "$(AUTOTAGS) $(TAGS)"
GO := go
@@ -5,14 +7,26 @@ PACKAGE := github.com/seccomp/containers-golang
sources := $(wildcard *.go)
-default.json: $(sources)
+.PHONY: seccomp.json
+seccomp.json: $(sources)
$(GO) build -compiler gc $(BUILDFLAGS) ./cmd/generate.go
$(GO) build -compiler gc ./cmd/generate.go
$(GO) run ${BUILDFLAGS} cmd/generate.go
-all: default.json
+all: seccomp.json
.PHONY: test-unit
test-unit:
- $(GO) test $(BUILDFLAGS) $(shell $(GO) list ./... | grep -v ^$(PACKAGE)/vendor)
- $(GO) test $(shell $(GO) list ./... | grep -v ^$(PACKAGE)/vendor)
+ $(GO) test -v $(BUILDFLAGS) $(shell $(GO) list ./... | grep -v ^$(PACKAGE)/vendor)
+ $(GO) test -v $(shell $(GO) list ./... | grep -v ^$(PACKAGE)/vendor)
+
+.PHONY: vendor
+vendor:
+ export GO111MODULE=on \
+ $(GO) mod tidy && \
+ $(GO) mod vendor && \
+ $(GO) mod verify
+
+.PHONY: clean
+clean:
+ rm -f generate