From 92ac544efddff7122488740d4a8049a2e9a9e765 Mon Sep 17 00:00:00 2001 From: "Bryn M. Reeves" Date: Mon, 27 Mar 2017 19:44:45 +0100 Subject: [makefiles] use rm -f when cleaning up *.pyc files $ make rpm rm: remove write-protected regular file './sos/sosreport.pyc'? y rm: remove write-protected regular file './sos/policies/__pycache__/debian.cpython-35.pyc'? ^CMakefile:74: recipe for target 'clean' failed make: *** [clean] Interrupt Gets old very fast.. Signed-off-by: Bryn M. Reeves --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 2d643df8..30298a74 100644 --- a/Makefile +++ b/Makefile @@ -74,7 +74,7 @@ clean: @rm -fv *~ .*~ changenew ChangeLog.old $(NAME)-$(VERSION).tar.gz sosreport.1.gz sos.conf.5.gz @rm -rf rpm-build @for i in `find . -iname *.pyc`; do \ - rm $$i; \ + rm -f $$i; \ done; \ for d in $(SUBDIRS); do make -C $$d clean ; done -- cgit