]> git.proxmox.com Git - mirror_spl-debian.git/commitdiff
Remove Module.markers and Module.symver{s} in clean target
authorBrian Behlendorf <behlendorf1@llnl.gov>
Mon, 8 Mar 2010 21:08:09 +0000 (13:08 -0800)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Mon, 8 Mar 2010 21:39:57 +0000 (13:39 -0800)
Split 'modules' and 'clean' Makefile targets to allow us to
cleanly remove the Module.* build products with a 'make clean'.

module/Makefile.in

index 4368f714279b5c10b087f480f68e7ac8e96dc2c2..eed81f64eaa0396e7f09b88e4048b1748e4bb802 100644 (file)
@@ -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) \