aboutsummaryrefslogtreecommitdiff
path: root/module/Makefile.in
diff options
context:
space:
mode:
authorBrian Behlendorf <behlendorf1@llnl.gov>2011-04-05 20:13:01 +0000
committerBrian Behlendorf <behlendorf1@llnl.gov>2011-04-05 20:33:28 +0000
commitd433c206515e567c52ce09589033405a0ae3716e (patch)
treeb3490a255f584a9e63bd6389033a5dcb750a8972 /module/Makefile.in
parentfa417e57a68b7aa026ec5fd8c0471b6c60ca109f (diff)
downloadsrc-d433c206515e567c52ce09589033405a0ae3716e.tar.gz
src-d433c206515e567c52ce09589033405a0ae3716e.zip
Diffstat (limited to 'module/Makefile.in')
-rw-r--r--module/Makefile.in5
1 files changed, 4 insertions, 1 deletions
diff --git a/module/Makefile.in b/module/Makefile.in
index 78e48147ae85..d9f73c28786d 100644
--- a/module/Makefile.in
+++ b/module/Makefile.in
@@ -24,7 +24,10 @@ modules:
$(MAKE) -C @LINUX_OBJ@ SUBDIRS=`pwd` @KERNELMAKE_PARAMS@ $@
clean:
- $(MAKE) -C @LINUX_OBJ@ SUBDIRS=`pwd` @KERNELMAKE_PARAMS@ $@
+ @# Only cleanup the kernel build directories when CONFIG_KERNEL
+ @# is defined. This indicates that kernel modules should be built.
+@CONFIG_KERNEL_TRUE@ $(MAKE) -C @LINUX_OBJ@ SUBDIRS=`pwd` @KERNELMAKE_PARAMS@ $@
+
if [ -f @SPL_SYMBOLS@ ]; then $(RM) @SPL_SYMBOLS@; fi
if [ -f @LINUX_SYMBOLS@ ]; then $(RM) @LINUX_SYMBOLS@; fi
if [ -f Module.markers ]; then $(RM) Module.markers; fi