]> git.ipfire.org Git - thirdparty/kmod.git/commitdiff
build-sys: forcefully create links
authorLucas De Marchi <lucas.demarchi@profusion.mobi>
Wed, 18 Jan 2012 18:37:59 +0000 (16:37 -0200)
committerLucas De Marchi <lucas.demarchi@profusion.mobi>
Wed, 18 Jan 2012 21:48:16 +0000 (19:48 -0200)
If link already existed we would fail. Really not important for
packagers (the link should not exist), but for those who manually install it.

Makefile.am

index 46e15f75ecd038cff18643a187984d54dd461ff3..932d1ae3a041455b00403920262185411d76427e 100644 (file)
@@ -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) && \