mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
common.mak: use '--' for rm calls to distinguish between options and files
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 <hoeppner@linux.ibm.com> Signed-off-by: Marc Hartmayer <mhartmay@linux.ibm.com> Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>
This commit is contained in:
committed by
Jan Höppner
parent
886476a207
commit
c48d45ba92
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user