summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorMorten Linderud <morten@linderud.pw>2020-01-11 13:50:45 +0100
committerMorten Linderud <morten@linderud.pw>2020-01-11 13:50:45 +0100
commit627d71312ff62e7401e050988dabebe926dc8896 (patch)
tree53dd27abb6e3136028587499817d29ee1de52db7 /Makefile
parent0e9c208d3f9fc6f160f7e7746119ddf99ae6f220 (diff)
downloadpodman-627d71312ff62e7401e050988dabebe926dc8896.tar.gz
podman-627d71312ff62e7401e050988dabebe926dc8896.tar.bz2
podman-627d71312ff62e7401e050988dabebe926dc8896.zip
[Makefile] Ensure .gopathok dependency is met for varlink
When executing make in parallel, e.g `make -j8`, there is a chance steps are executed at the same time. There is a chance .gopathok and the actual varlink generation happening at the same time, causing a race and ultimately failing the build. Ensuring the .gopathok dependency is met at the actual step fixes the problem. Signed-off-by: Morten Linderud <morten@linderud.pw>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index c1ae33cfe..3530b73c9 100644
--- a/Makefile
+++ b/Makefile
@@ -532,7 +532,7 @@ install.libseccomp.sudo:
cd ../../seccomp/libseccomp && git checkout --detach $(LIBSECCOMP_COMMIT) && ./autogen.sh && ./configure --prefix=/usr && make all && make install
-cmd/podman/varlink/iopodman.go: cmd/podman/varlink/io.podman.varlink
+cmd/podman/varlink/iopodman.go: .gopathok cmd/podman/varlink/io.podman.varlink
GO111MODULE=off $(GO) generate ./cmd/podman/varlink/...
API.md: cmd/podman/varlink/io.podman.varlink