From 8231ec5f38b040b65f1e0ec9deb4885b3d3cfb6f Mon Sep 17 00:00:00 2001 From: Marc Hartmayer Date: Thu, 17 Mar 2022 17:17:26 +0100 Subject: [PATCH] zipl/boot/Makefile: fix cleanup of linker script dependency files MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit By default, the Bash file globbing pattern '*' doesn't list files prefixed by a dot (see https://linux.die.net/man/1/bash). Let's fix this by using the pattern `.*` instead. While at it, add `--` option to remove possible problems with leading dashes in filenames. Signed-off-by: Marc Hartmayer Reviewed-by: Jan Höppner Signed-off-by: Jan Höppner --- zipl/boot/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zipl/boot/Makefile b/zipl/boot/Makefile index 92f2ccbb..f4a68a9e 100644 --- a/zipl/boot/Makefile +++ b/zipl/boot/Makefile @@ -118,7 +118,7 @@ data.h: data.o echo "extern char $$SYMBOL;" >>data.h; done clean: - rm -f *.o *.exec *.bin $(FILES) data.o data.h tape0.bin *.xxx *.yyy \ - stage3.bin *.lds *.lds.d + rm -f -- *.o *.exec *.bin $(FILES) data.o data.h tape0.bin *.xxx *.yyy \ + stage3.bin *.lds .*.lds.d .PHONY: all clean