From 74cdaafd5b9b413904bbb993a58948d28088afb6 Mon Sep 17 00:00:00 2001 From: Richard Cochran Date: Thu, 5 Apr 2018 12:41:25 -0700 Subject: [PATCH] Correct the make install target. The make install target tries to install a man page that does not exist. This patch fixes the makefile to install the existing man pages only. Signed-off-by: Richard Cochran --- makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/makefile b/makefile index 796235b..6f5321c 100644 --- a/makefile +++ b/makefile @@ -74,7 +74,9 @@ force: install: $(PRG) install -p -m 755 -d $(DESTDIR)$(sbindir) $(DESTDIR)$(man8dir) install $(PRG) $(DESTDIR)$(sbindir) - install -p -m 644 -t $(DESTDIR)$(man8dir) $(PRG:%=%.8) + for x in $(PRG:%=%.8); do \ + [ -f $$x ] && install -p -m 644 -t $(DESTDIR)$(man8dir) $$x ; \ + done clean: rm -f $(OBJECTS) $(DEPEND) $(PRG)