diff --git a/module/Makefile.in b/module/Makefile.in index e32bc9fb69..45c9d53fa2 100644 --- a/module/Makefile.in +++ b/module/Makefile.in @@ -5,11 +5,17 @@ subdir-m += zcommon subdir-m += zfs subdir-m += zpios -modules clean: +modules: # Make the exported SPL symbols available to these modules. cp @SPL_OBJ@/@SPL_SYMBOLS@ . $(MAKE) -C @LINUX_OBJ@ SUBDIRS=`pwd` @KERNELMAKE_PARAMS@ $@ +clean: + $(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 + modules_install: $(MAKE) -C @LINUX_OBJ@ SUBDIRS=`pwd` \ INSTALL_MOD_PATH=$(DESTDIR) \