From: Lucas De Marchi Date: Wed, 18 Jan 2012 18:37:59 +0000 (-0200) Subject: build-sys: forcefully create links X-Git-Tag: v5~81 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=12fd9cd55c5ecac5ae1e294bdefed419e6522752;p=thirdparty%2Fkmod.git build-sys: forcefully create links If link already existed we would fail. Really not important for packagers (the link should not exist), but for those who manually install it. --- diff --git a/Makefile.am b/Makefile.am index 46e15f75..932d1ae3 100644 --- a/Makefile.am +++ b/Makefile.am @@ -98,12 +98,12 @@ install-exec-hook: mv $(DESTDIR)$(libdir)/libkmod.so.* $(DESTDIR)$(rootlibdir); \ fi if BUILD_TOOLS - ln -s kmod $(DESTDIR)$(bindir)/insmod - ln -s kmod $(DESTDIR)$(bindir)/rmmod - ln -s kmod $(DESTDIR)$(bindir)/lsmod - ln -s kmod $(DESTDIR)$(bindir)/modprobe - ln -s kmod $(DESTDIR)$(bindir)/modinfo - ln -s kmod $(DESTDIR)$(bindir)/depmod + ln -sf kmod $(DESTDIR)$(bindir)/insmod + ln -sf kmod $(DESTDIR)$(bindir)/rmmod + ln -sf kmod $(DESTDIR)$(bindir)/lsmod + ln -sf kmod $(DESTDIR)$(bindir)/modprobe + ln -sf kmod $(DESTDIR)$(bindir)/modinfo + ln -sf kmod $(DESTDIR)$(bindir)/depmod $(MKDIR_P) $(DESTDIR)$(sbindir) && \ relpath=$$(tools/shortest-relpath $(DESTDIR)$(bindir)/kmod $(DESTDIR)$(sbindir)) && \ cd $(DESTDIR)$(sbindir) && \