]> git.proxmox.com Git - mirror_spl-debian.git/commit
Fix 'make install' overly broad 'rm'
authorBrian Behlendorf <behlendorf1@llnl.gov>
Wed, 20 Jul 2011 04:06:50 +0000 (21:06 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Wed, 20 Jul 2011 16:37:41 +0000 (09:37 -0700)
commite80cd06b8e0428f3ca2c62e4cb0e4ec54fda1d5c
tree2d7e9df703103dc6e67bacc20d498ac40a903fa3
parentd9365224ea04562af1b0cf2a1c2e84ab429a13b2
Fix 'make install' overly broad 'rm'

When running 'make install' without DESTDIR set the module install
rules would mistakenly destroy the 'modules.*' files for ALL of
your installed kernels.  This could lead to a non-functional system
for the alternate kernels because 'depmod -a' will only be run for
the kernel which was compiled against.  This issue would not impact
anyone using the 'make <deb|rpm|pkg>' build targets to build and
install packages.

The fix for this issue is to only remove extraneous build products
when DESTDIR is set.  This almost exclusively indicates we are
building packages and installed the build products in to a temporary
staging location.  Additionally, limit the removal the unneeded
build products to the target kernel version.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #328
module/Makefile.in