From: Brian Behlendorf Date: Mon, 8 Mar 2010 21:08:09 +0000 (-0800) Subject: Remove Module.markers and Module.symver{s} in clean target X-Git-Tag: spl-0.4.8~4 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=21006d08af406344fafc97d2eb43b73e781e49ff;p=spl 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'. --- diff --git a/module/Makefile.in b/module/Makefile.in index 4368f71..eed81f6 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) \