summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorValentin Rothberg <rothberg@redhat.com>2021-01-17 16:37:55 +0100
committerMatthew Heon <matthew.heon@pm.me>2021-01-29 15:26:56 -0500
commit9fa6aa885b64057f974b866506e0909d1cd30a4a (patch)
treeb0b831c72b07789d1fef12501d86b3567ced4be8 /Makefile
parent367c64919e6cfd07101e4f0d40902ad33d9fdcbd (diff)
downloadpodman-9fa6aa885b64057f974b866506e0909d1cd30a4a.tar.gz
podman-9fa6aa885b64057f974b866506e0909d1cd30a4a.tar.bz2
podman-9fa6aa885b64057f974b866506e0909d1cd30a4a.zip
simplify bindings generation
Run `go generate ./pkg/bindings/...` once for all bindings instead of generating them separately. This should speed up bindings generation as a given package is visited only once, and it fixes #8989 by dropping the use of pushd and popd. Fixes: #8989 Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 1 insertions, 9 deletions
diff --git a/Makefile b/Makefile
index 9014b81f7..7d307793c 100644
--- a/Makefile
+++ b/Makefile
@@ -462,15 +462,7 @@ podman-remote-%-release:
BINDINGS_SOURCE = $(wildcard pkg/bindings/**/types.go)
.generate-bindings: $(BINDINGS_SOURCE)
ifneq ($(shell uname -s), Darwin)
- for i in $(BINDINGS_SOURCE); do \
- dirname=$$(dirname $${i}); \
- shortname=$$(basename $${dirname}); \
- pushd $${dirname}>/dev/null; \
- echo $${dirname}; \
- echo $(GO) generate; \
- $(GO) generate -mod=vendor; \
- popd > /dev/null; \
- done;
+ $(GO) generate -mod=vendor ./pkg/bindings/... ;
endif
touch .generate-bindings