summaryrefslogtreecommitdiffstats
path: root/module
diff options
context:
space:
mode:
authorнаб <[email protected]>2021-12-27 02:21:38 +0100
committerTony Hutter <[email protected]>2022-02-16 17:58:55 -0800
commit52aae04c6a0a88d6af7b1cda27694414ae202822 (patch)
treec74ca6fbc3deaed2fd30ba363658776bbb54187c /module
parent77ae804f9eb162c123a62cea3bdefec7e7ca9459 (diff)
module: Makefile: simplify clean and install jobs
Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Ahelenia Ziemiańska <[email protected]> Closes #12979
Diffstat (limited to 'module')
-rw-r--r--module/Makefile.in8
1 files 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