From c5d8cd63ae47cd78a9f7ed94af30c4ee4ae795f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=BD=D0=B0=D0=B1?= Date: Mon, 27 Dec 2021 02:21:38 +0100 Subject: [PATCH] module: Makefile: simplify clean and install jobs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reviewed-by: Brian Behlendorf Signed-off-by: Ahelenia ZiemiaƄska Closes #12979 --- module/Makefile.in | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/module/Makefile.in b/module/Makefile.in index 0dd9df501..9cd075e68 100644 --- a/module/Makefile.in +++ b/module/Makefile.in @@ -67,10 +67,8 @@ clean-Linux: @# is defined. This indicates that kernel modules should be built. @CONFIG_KERNEL_TRUE@ $(MAKE) -C @LINUX_OBJ@ M="$$PWD" @KERNEL_MAKE@ clean - if [ -f @LINUX_SYMBOLS@ ]; then $(RM) @LINUX_SYMBOLS@; fi - if [ -f Module.markers ]; then $(RM) Module.markers; fi - - find . -name '*.ur-safe' -type f -print | xargs $(RM) + $(RM) @LINUX_SYMBOLS@ Module.markers + find . -name '*.ur-safe' -type f -delete clean-FreeBSD: +$(FMAKE) clean @@ -86,7 +84,7 @@ modules_install-Linux: @# Remove extraneous build products when packaging kmoddir=$(INSTALL_MOD_PATH)/lib/modules/@LINUX_VERSION@; \ if [ -n "$(DESTDIR)" ]; then \ - find $$kmoddir -name 'modules.*' | xargs $(RM); \ + find $$kmoddir -name 'modules.*' -delete; \ fi @# Debian ships tiny fake System.map files that are @# syntactically valid but just say