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 <richardcochran@gmail.com>
master
Richard Cochran 2018-04-05 12:41:25 -07:00
parent 46acbcee42
commit 74cdaafd5b
1 changed files with 3 additions and 1 deletions

View File

@ -74,7 +74,9 @@ force:
install: $(PRG) install: $(PRG)
install -p -m 755 -d $(DESTDIR)$(sbindir) $(DESTDIR)$(man8dir) install -p -m 755 -d $(DESTDIR)$(sbindir) $(DESTDIR)$(man8dir)
install $(PRG) $(DESTDIR)$(sbindir) 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: clean:
rm -f $(OBJECTS) $(DEPEND) $(PRG) rm -f $(OBJECTS) $(DEPEND) $(PRG)