From 01a0601652744a3ae889d6f05b25e988becd1f8e Mon Sep 17 00:00:00 2001 From: Ryan Cavicchioni Date: Sat, 10 Apr 2021 04:01:14 +0000 Subject: [PATCH] Suppress make clean rm errors when files are missing --- Makefile | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index 9209b67..431d13c 100644 --- a/Makefile +++ b/Makefile @@ -85,11 +85,12 @@ rpm: deb-clean: $(Q) rm -rf $(DEBBUILDDIR) - $(Q) rm $(BUILDDIR)/*.changes - $(Q) rm $(BUILDDIR)/*.buildinfo - $(Q) rm $(BUILDDIR)/*.deb - $(Q) rm $(BUILDDIR)/*.tar.* + $(Q) rm -f $(BUILDDIR)/*.dsc + $(Q) rm -f $(BUILDDIR)/*.changes + $(Q) rm -f $(BUILDDIR)/*.buildinfo + $(Q) rm -f $(BUILDDIR)/*.deb + $(Q) rm -f $(BUILDDIR)/*.tar.* rpm-clean: $(Q) rm -rf $(RPMBUILDDIR) - $(Q) rm $(BUILDDIR)/*.rpm + $(Q) rm -f $(BUILDDIR)/*.rpm