changeset 882:f05107560aa9

Fix so that "make install" for multi target won't fail on scp which doesn't have a manpage
author Mike Frysinger <vapier@gentoo.org>
date Wed, 11 Dec 2013 21:50:33 +0800
parents 77972dc491ca
children ff597bf2cfb0
files Makefile.in
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/Makefile.in	Wed Dec 11 21:48:02 2013 +0800
+++ b/Makefile.in	Wed Dec 11 21:50:33 2013 +0800
@@ -136,7 +136,7 @@
 	-rm -f $(DESTDIR)$(bindir)/$*$(EXEEXT) 
 	-ln -s $(bindir)/dropbearmulti$(EXEEXT) $(DESTDIR)$(bindir)/$*$(EXEEXT) 
 	$(INSTALL) -d $(DESTDIR)$(mandir)/man1
-	$(INSTALL) -m 644 $*.1  $(DESTDIR)$(mandir)/man1/$*.1
+	if test -e $*.1; then $(INSTALL) -m 644 $*.1 $(DESTDIR)$(mandir)/man1/$*.1; fi
 
 # dropbear should go in sbin, so it needs a seperate rule
 inst_dropbear: dropbear