From c48d45ba920cbf422d0ed66e88d75366019c4ce8 Mon Sep 17 00:00:00 2001 From: Marc Hartmayer Date: Thu, 12 Nov 2020 16:00:24 +0100 Subject: [PATCH] common.mak: use '--' for rm calls to distinguish between options and files MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Use '--' for rm calls to distinguish between options and files. This fixes, for example, the following error: make[1]: Entering directory '/root/git/s390-tools/genprotimg/src' rm -f *.gcda *.gcno *.gcov rm: invalid option -- '.' Try 'rm ./-.gcno' to remove the file '-.gcno'. Try 'rm --help' for more information. make[1]: *** [../../common.mak:369: clean_gcov] Error 1 Acked-by: Jan Höppner Signed-off-by: Marc Hartmayer Signed-off-by: Jan Höppner --- common.mak | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common.mak b/common.mak index 445cd301..a5a87605 100644 --- a/common.mak +++ b/common.mak @@ -366,9 +366,9 @@ install: install_echo install_dirs clean_echo: $(call echocmd," CLEAN ") clean_gcov: - rm -f *.gcda *.gcno *.gcov + rm -f -- *.gcda *.gcno *.gcov clean_dep: - rm -f .*.o.d + rm -f -- .*.o.d clean: clean_echo clean_gcov clean_dep endif