[Ovirt-devel] [PATCH] "make clean" should not don't remove my backups!

Jim Meyering jim at meyering.net
Fri Sep 5 07:16:10 UTC 2008


It is not the job of "make clean" to remove a user's backup files.
It should remove only those files that "make some-target" can create.

FYI, these separately-created patches apply to docs and release subdirs.
The docs patch has the "-f" option.

>From 7e67831daada4213bd7ba9d1380f8ad9d2c17471 Mon Sep 17 00:00:00 2001
From: Jim Meyering <meyering at redhat.com>
Date: Fri, 5 Sep 2008 09:09:59 +0200
Subject: [PATCH] Makefile (clean): Do *not* remove user's backup files.

---
 Makefile |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)

diff --git a/Makefile b/Makefile
index 6cd2074..2698147 100644
--- a/Makefile
+++ b/Makefile
@@ -8,7 +8,6 @@ distclean: clean
 	rm -rf rpm-build

 clean:
-	rm -rf *~

 tar: clean
 	mkdir -p rpm-build
--
1.6.0.1.216.g1b23a

>From 3cfa62cf661c35dac828ee1785df3828dce2a2aa Mon Sep 17 00:00:00 2001
From: Jim Meyering <meyering at redhat.com>
Date: Fri, 5 Sep 2008 09:09:40 +0200
Subject: [PATCH] Makefile (clean): Do *not* remove user's backup files.

---
 Makefile |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)

diff --git a/Makefile b/Makefile
index 4555e4a..b458ed5 100644
--- a/Makefile
+++ b/Makefile
@@ -4,7 +4,6 @@ all: rpms
 include release.mk

 clean:
-	rm -f *~

 distclean: clean
 	rm -rf rpm-build
--
1.6.0.1.216.g1b23a




More information about the ovirt-devel mailing list