diff options
author | Ed Santiago <santiago@redhat.com> | 2022-07-18 07:53:39 -0600 |
---|---|---|
committer | Ed Santiago <santiago@redhat.com> | 2022-07-19 10:33:53 -0600 |
commit | 10d6586cb7e61417f67ad9e259ef8225cc2710fa (patch) | |
tree | 744961d37286c5c0d53d954300527a747fec1654 /docs | |
parent | 6d9f34c6301910892f7746dc93b226f7c16f8c2c (diff) | |
download | podman-10d6586cb7e61417f67ad9e259ef8225cc2710fa.tar.gz podman-10d6586cb7e61417f67ad9e259ef8225cc2710fa.tar.bz2 podman-10d6586cb7e61417f67ad9e259ef8225cc2710fa.zip |
Makefile: use order-only prereq for podman-remote
podman-remote has a dependency on $(SRCBINDIR), because on
Mac and Windows that's a special dir that may not exist.
But depending on a directory means depending on its mtime,
which changes every time a file in it is updated, which
means running 'make' twice in a row will rebuild podman-remote
for no good reason.
Solution: GNU Make has the concept of "order-only" prerequisites,
precisely for this situation. Use it. Since it's an obscure
feature, document it.
UPDATE: This exposed some nasty duplication wrt podman-remote rules.
Clean those up, and add comments to some confusing sections.
Fixes: #14756
(Also, drive-by edit to remove a stray misdocumented non-option)
Signed-off-by: Ed Santiago <santiago@redhat.com>
Diffstat (limited to 'docs')
-rwxr-xr-x | docs/remote-docs.sh | 4 | ||||
-rw-r--r-- | docs/source/markdown/podman-import.1.md | 4 |
2 files changed, 3 insertions, 5 deletions
diff --git a/docs/remote-docs.sh b/docs/remote-docs.sh index 4c2602f80..f281c19ff 100755 --- a/docs/remote-docs.sh +++ b/docs/remote-docs.sh @@ -6,7 +6,9 @@ PLATFORM=$1 ## linux, windows or darwin TARGET=${2} ## where to output files SOURCES=${@:3} ## directories to find markdown files -# Overridden for testing. Native podman-remote binary expected filepaths +# This is a *native* binary, one we can run on this host. (This script can be +# invoked in a cross-compilation environment, so even if PLATFORM=windows +# we need an actual executable that we can invoke). if [[ -z "$PODMAN" ]]; then case $(env -i HOME=$HOME PATH=$PATH go env GOOS) in windows) diff --git a/docs/source/markdown/podman-import.1.md b/docs/source/markdown/podman-import.1.md index 4002f5255..8d482b961 100644 --- a/docs/source/markdown/podman-import.1.md +++ b/docs/source/markdown/podman-import.1.md @@ -50,10 +50,6 @@ Shows progress on the import Set variant of the imported image. -**--verbose** - -Print additional debugging information - ## EXAMPLES ``` |