rust: Do not fail install if no man page is available

Some (rust) tools may not provide man pages. In absence of a man file
the install process currently fails. Solve this by expanding the glob
using Make logic instead of sh logic.

Reviewed-by: Jan Höppner <hoeppner@linux.ibm.com>
Signed-off-by: Steffen Eiden <seiden@linux.ibm.com>
This commit is contained in:
Steffen Eiden
2025-12-08 15:26:25 +01:00
parent 01cb8c4085
commit 34aff761d0
+3 -4
View File
@@ -113,10 +113,9 @@ install-rust-tools: $(BUILD_TARGETS)
install-man:
$(INSTALL) -d -m 755 $(DESTDIR)$(MANDIR)/man1
$(foreach target,$(CARGO_TARGETS),\
$(INSTALL) -m 644 $(target)/man/*.1 -t $(DESTDIR)$(MANDIR)/man1;)
$(foreach target,$(PV_TARGETS),\
$(INSTALL) -m 644 $(target)/man/*.1 -t $(DESTDIR)$(MANDIR)/man1;)
$(foreach target,$(CARGO_TARGETS) $(PV_TARGETS),\
$(foreach man,$(wildcard $(target)/man/*.1), \
$(INSTALL) -m 644 $(man) -t $(DESTDIR)$(MANDIR)/man1;))
ln -sf pvimg-create.1 $(DESTDIR)$(MANDIR)/man1/genprotimg.1
install-shell-completions: install-bash-completion install-zsh-completion