mirror of
https://github.com/containers/podman.git
synced 2025-05-17 23:26:08 +08:00
Move clean-binaries before podman-remote in podman-remote-docs target
When run make with muitiple jobs, `clean-binaries` could run after the `podman-remote` target thus delete the newly built `podman-remote` binary file. And this would cause the error later in the `docs/remote-docs.sh` script. Signed-off-by: xxyzz <gitpull@protonmail.com>
This commit is contained in:
3
Makefile
3
Makefile
@ -490,7 +490,8 @@ docs: $(MANPAGES) ## Generate documentation
|
||||
# in addition to the target-architecture binary (if different). That's
|
||||
# what the NATIVE_GOOS make does in the first line.
|
||||
podman-remote-%-docs: podman-remote
|
||||
$(MAKE) clean-binaries podman-remote GOOS=$(NATIVE_GOOS) GOARCH=$(NATIVE_GOARCH)
|
||||
$(MAKE) clean-binaries
|
||||
$(MAKE) podman-remote GOOS=$(NATIVE_GOOS) GOARCH=$(NATIVE_GOARCH)
|
||||
$(eval GOOS := $*)
|
||||
$(MAKE) docs $(MANPAGES)
|
||||
rm -rf docs/build/remote
|
||||
|
Reference in New Issue
Block a user