From 34aff761d0b7827504491be71b544eb4931068c1 Mon Sep 17 00:00:00 2001 From: Steffen Eiden Date: Mon, 8 Dec 2025 15:26:25 +0100 Subject: [PATCH] rust: Do not fail install if no man page is available MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Signed-off-by: Steffen Eiden --- rust/Makefile | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/rust/Makefile b/rust/Makefile index f93f1983..b73af32c 100644 --- a/rust/Makefile +++ b/rust/Makefile @@ -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