[patch] simplify install links
Mike Frysinger
vapier at gentoo.org
Mon Dec 9 09:26:43 WST 2013
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
Url : http://lists.ucc.gu.uwa.edu.au/pipermail/dropbear/attachments/20131208/2b6bc7e5/attachment.sig
More information about the Dropbear
mailing list