From: "Steven Rostedt (VMware)" <rostedt@xxxxxxxxxxx> When the building of the man pages is done in a directory other than the repo directory (with the O= option), the intermediate build file name incorrectly appends a "install-" prefix to the path and not to the file, causing the installation to fail. Fix it by using patsubst instead of addprefix to append the "install-" name to the intermediate files for the installation. Signed-off-by: Steven Rostedt (VMware) <rostedt@xxxxxxxxxxx> --- Documentation/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Documentation/Makefile b/Documentation/Makefile index 73dbe2ae4d43..af124572c863 100644 --- a/Documentation/Makefile +++ b/Documentation/Makefile @@ -154,12 +154,12 @@ ifdef missing_tools $(error "You need to install $(missing_tools) for man pages") endif -install-%.3: $(OUTPUT)%.3 +$(OUTPUT)install-%.3: $(OUTPUT)%.3 $(call QUIET_INSTALL, $<) \ $(INSTALL) -d -m 755 $(DESTDIR)$(man3dir); \ $(INSTALL) -m 644 $< $(DESTDIR)$(man3dir); -do-install-man: man $(addprefix install-,$(wildcard $(OUTPUT)*.3)) +do-install-man: man $(patsubst $(OUTPUT)%,$(OUTPUT)install-%,$(wildcard $(OUTPUT)*.3)) install-man: check-man-tools man $(Q)$(MAKE) -C . do-install-man -- 2.33.0