]> git.proxmox.com Git - mirror_zfs.git/commitdiff
module: Makefile: simplify clean and install jobs
authorнаб <nabijaczleweli@nabijaczleweli.xyz>
Mon, 27 Dec 2021 01:21:38 +0000 (02:21 +0100)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Wed, 26 Jan 2022 19:29:23 +0000 (11:29 -0800)
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz>
Closes #12979

module/Makefile.in

index 0dd9df501782c06b2e2d7c5ffe530d08a6e43ed7..9cd075e6859cbae0a97f0cada7f9017bde0ca968 100644 (file)
@@ -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