diff Makefile.in @ 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 3899ca4b65fd
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