aboutsummaryrefslogtreecommitdiffstats
path: root/module
diff options
context:
space:
mode:
authorBrian Behlendorf <behlendorf1@llnl.gov>2010-03-08 13:08:09 -0800
committerBrian Behlendorf <behlendorf1@llnl.gov>2010-03-08 13:39:57 -0800
commit21006d08af406344fafc97d2eb43b73e781e49ff (patch)
tree35f09f9ca4cc320ce4f9299760bb5f76a6d61c9a /module
parent3977f8370f8caf57600deff6795894410f0e715e (diff)
Remove Module.markers and Module.symver{s} in clean target
Split 'modules' and 'clean' Makefile targets to allow us to cleanly remove the Module.* build products with a 'make clean'.
Diffstat (limited to 'module')
-rw-r--r--module/Makefile.in7
1 files changed, 6 insertions, 1 deletions
diff --git a/module/Makefile.in b/module/Makefile.in
index 4368f7142..eed81f64e 100644
--- a/module/Makefile.in
+++ b/module/Makefile.in
@@ -3,9 +3,14 @@ subdir-m += splat
INSTALL=/usr/bin/install
-modules clean:
+modules:
$(MAKE) -C @LINUX_OBJ@ SUBDIRS=`pwd` @KERNELMAKE_PARAMS@ $@
+clean:
+ $(MAKE) -C @LINUX_OBJ@ SUBDIRS=`pwd` @KERNELMAKE_PARAMS@ $@
+ if [ -f @LINUX_SYMBOLS@ ]; then $(RM) @LINUX_SYMBOLS@; fi
+ if [ -f Module.markers ]; then $(RM) Module.markers; fi
+
modules_install:
$(MAKE) -C @LINUX_OBJ@ SUBDIRS=`pwd` \
INSTALL_MOD_PATH=$(DESTDIR) \