]> git.ipfire.org Git - thirdparty/kmod.git/commitdiff
build-sys: create symlinks if we are installing tools
authorLucas De Marchi <lucas.demarchi@profusion.mobi>
Tue, 17 Jan 2012 21:33:32 +0000 (19:33 -0200)
committerLucas De Marchi <lucas.demarchi@profusion.mobi>
Tue, 17 Jan 2012 21:33:32 +0000 (19:33 -0200)
Makefile.am

index 0dd48ff19d581b6ef240a89880b30a0421d56a47..22ef9eca7503a06e65077c152063e98a6599c776 100644 (file)
@@ -97,6 +97,14 @@ install-exec-hook:
                ln -sf $$so_img_rel_target_prefix$(rootlibdir)/$$so_img_name $(DESTDIR)$(libdir)/libkmod.so && \
                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
+endif
 
 uninstall-hook:
        rm -f $(DESTDIR)$(rootlibdir)/libkmod.so*