there's no need to do `rm; ln` when `ln -f` will do the same thing

also, for softlinks in the bindir, just use relative ones rather than absolute
-mike

--- a/Makefile.in       Tue Dec 03 22:00:38 2013 +0800
+++ b/Makefile.in       Sun Dec 08 20:25:54 2013 -0500
@@ -126,15 +126,13 @@ install: $(addprefix inst_, $(TARGETS))
 
 insmultidropbear: dropbearmulti
        $(INSTALL) -d $(DESTDIR)$(sbindir)
-       -rm -f $(DESTDIR)$(sbindir)/dropbear$(EXEEXT)
-       -ln -s $(bindir)/dropbearmulti$(EXEEXT) 
$(DESTDIR)$(sbindir)/dropbear$(EXEEXT) 
+       -ln -sf $(bindir)/dropbearmulti$(EXEEXT) 
$(DESTDIR)$(sbindir)/dropbear$(EXEEXT)
        $(INSTALL) -d $(DESTDIR)$(mandir)/man8
        $(INSTALL) -m 644 dropbear.8  $(DESTDIR)$(mandir)/man8/dropbear.8
 
 insmulti%: dropbearmulti
        $(INSTALL) -d $(DESTDIR)$(bindir)
-       -rm -f $(DESTDIR)$(bindir)/$*$(EXEEXT) 
-       -ln -s $(bindir)/dropbearmulti$(EXEEXT) $(DESTDIR)$(bindir)/$*$(EXEEXT) 
+       -ln -sf dropbearmulti$(EXEEXT) $(DESTDIR)$(bindir)/$*$(EXEEXT)
        $(INSTALL) -d $(DESTDIR)$(mandir)/man1
        $(INSTALL) -m 644 $*.1  $(DESTDIR)$(mandir)/man1/$*.1
 

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to