summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorValentin Rothberg <rothberg@redhat.com>2020-01-29 12:17:42 +0100
committerValentin Rothberg <rothberg@redhat.com>2020-01-29 12:17:42 +0100
commit633610769ef270aac4f274ed363970c6da0a1b24 (patch)
treedc9544c4108a5b9c9c6b4816d4c3082fc5dec07f
parent326cdf944daae40ec83decf38ed1477e806cd846 (diff)
downloadpodman-633610769ef270aac4f274ed363970c6da0a1b24.tar.gz
podman-633610769ef270aac4f274ed363970c6da0a1b24.tar.bz2
podman-633610769ef270aac4f274ed363970c6da0a1b24.zip
run `varlink_generate` on Linux only
Running the `varlink_generate` make target on non-Linux machines is not supported, so restrict it to Linux only. Fixes: #4814 Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
-rw-r--r--Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index da58d2e8a..f29b7d47d 100644
--- a/Makefile
+++ b/Makefile
@@ -524,7 +524,10 @@ install.libseccomp.sudo:
cmd/podman/varlink/iopodman.go: .gopathok cmd/podman/varlink/io.podman.varlink
+ifeq ("$(shell uname -o)", "GNU/Linux")
+ # Only generate the varlink code on Linux (see issue #4814).
GO111MODULE=off $(GO) generate ./cmd/podman/varlink/...
+endif
API.md: cmd/podman/varlink/io.podman.varlink
$(GO) generate ./docs/...