mirror of
https://github.com/containers/podman.git
synced 2025-06-26 04:46:57 +08:00
Merge pull request #8994 from vrothberg/fix-8989
Simplify bindings generation
This commit is contained in:
10
Makefile
10
Makefile
@ -462,15 +462,7 @@ podman-remote-%-release:
|
|||||||
BINDINGS_SOURCE = $(wildcard pkg/bindings/**/types.go)
|
BINDINGS_SOURCE = $(wildcard pkg/bindings/**/types.go)
|
||||||
.generate-bindings: $(BINDINGS_SOURCE)
|
.generate-bindings: $(BINDINGS_SOURCE)
|
||||||
ifneq ($(shell uname -s), Darwin)
|
ifneq ($(shell uname -s), Darwin)
|
||||||
for i in $(BINDINGS_SOURCE); do \
|
$(GO) generate -mod=vendor ./pkg/bindings/... ;
|
||||||
dirname=$$(dirname $${i}); \
|
|
||||||
shortname=$$(basename $${dirname}); \
|
|
||||||
pushd $${dirname}>/dev/null; \
|
|
||||||
echo $${dirname}; \
|
|
||||||
echo $(GO) generate; \
|
|
||||||
$(GO) generate; \
|
|
||||||
popd > /dev/null; \
|
|
||||||
done;
|
|
||||||
endif
|
endif
|
||||||
touch .generate-bindings
|
touch .generate-bindings
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user