diff options
Diffstat (limited to 'module/Makefile.in')
-rw-r--r-- | module/Makefile.in | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/module/Makefile.in b/module/Makefile.in index e8d34c894..d4ddee2f4 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@; \ |