aboutsummaryrefslogtreecommitdiff
path: root/module/Makefile.in
diff options
context:
space:
mode:
authortuxoko <tuxoko@gmail.com>2015-11-20 01:42:41 +0000
committerBrian Behlendorf <behlendorf1@llnl.gov>2015-12-02 22:39:12 +0000
commitb0fe1adeb1f24192c9a3358a4c9a29a34b9537fe (patch)
tree063b2f1b7a1b640dbabbc27d1c7604900055183f /module/Makefile.in
parent60bd953ca4905e8720513d2d9e12932c0ea9cc83 (diff)
downloadsrc-b0fe1adeb1f24192c9a3358a4c9a29a34b9537fe.tar.gz
src-b0fe1adeb1f24192c9a3358a4c9a29a34b9537fe.zip
Diffstat (limited to 'module/Makefile.in')
-rw-r--r--module/Makefile.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/module/Makefile.in b/module/Makefile.in
index e8d34c894b3d..d4ddee2f429f 100644
--- a/module/Makefile.in
+++ b/module/Makefile.in
@@ -47,7 +47,7 @@ modules_install:
KERNELRELEASE=@LINUX_VERSION@
@# Remove extraneous build products when packaging
kmoddir=$(DESTDIR)$(INSTALL_MOD_PATH)/lib/modules/@LINUX_VERSION@; \
- if [ -n $$kmoddir ]; then \
+ if [ -n "$(DESTDIR)" ]; then \
find $$kmoddir -name 'modules.*' | xargs $(RM); \
fi
sysmap=$(DESTDIR)$(INSTALL_MOD_PATH)/boot/System.map-@LINUX_VERSION@; \