From ffbe1b5738951aed8945bf58c23e634433e77eb1 Mon Sep 17 00:00:00 2001 From: Alfred Wingate Date: Tue, 10 Dec 2024 21:34:57 +0200 Subject: [PATCH] Use a order-only-prerequisite for mandir creation Otherwise its a matter of luck that the man directory is created before man dir generation. Bug: https://bugs.gentoo.org/880057 Signed-off-by: Alfred Wingate --- Makefile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 2b199266d..0625e20ef 100644 --- a/Makefile +++ b/Makefile @@ -280,7 +280,7 @@ bin/containerd-shim-runc-v2: cmd/containerd-shim-runc-v2 FORCE # set !cgo and om binaries: $(BINARIES) ## build binaries @echo "$(WHALE) $@" -man: mandir $(addprefix man/,$(MANPAGES)) +man: $(addprefix man/,$(MANPAGES)) @echo "$(WHALE) $@" mandir: @@ -289,15 +289,15 @@ mandir: # Kept for backwards compatibility genman: man/containerd.8 man/ctr.8 -man/containerd.8: bin/gen-manpages FORCE +man/containerd.8: bin/gen-manpages FORCE | mandir @echo "$(WHALE) $@" $< $(@F) $(@D) -man/ctr.8: bin/gen-manpages FORCE +man/ctr.8: bin/gen-manpages FORCE | mandir @echo "$(WHALE) $@" $< $(@F) $(@D) -man/%: docs/man/%.md FORCE +man/%: docs/man/%.md FORCE | mandir @echo "$(WHALE) $@" go-md2man -in "$<" -out "$@"