diff options
author | Steven Rostedt (VMware) <rostedt@goodmis.org> | 2021-12-16 16:39:47 -0500 |
---|---|---|
committer | Steven Rostedt <rostedt@goodmis.org> | 2021-12-17 22:07:04 -0500 |
commit | 727da2c38c8a93830c7e04b206d4263f73be5bf3 (patch) | |
tree | e5939e9f9b73433a679ec0b510392b4bba0cdebd | |
parent | 6af11fabb43e2477c6feb6dfcc7b8399475efccb (diff) | |
download | libtraceevent-727da2c38c8a93830c7e04b206d4263f73be5bf3.tar.gz |
libtraceevent: Fix installing of man pages in remote directory
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.
Link: https://lore.kernel.org/linux-trace-devel/20211216213956.13934-2-rostedt@goodmis.org
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
-rw-r--r-- | Documentation/Makefile | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Documentation/Makefile b/Documentation/Makefile index 73dbe2a..af12457 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 |