From b9656e81a460ddbfc8668b9902a4a6f8b2bc2521 Mon Sep 17 00:00:00 2001 From: Anders Darander Date: Wed, 23 Dec 2009 10:05:45 +0100 Subject: Remove backup-files from the TARGET_DIR. Closes #823. ~ is commonly used as a suffix to editor backup files. Remove these files, just as we remove CVS-directories and .empty-files. [Peter: tweaked to remove in same find invocation as .empty] Signed-off-by: Anders Darander Signed-off-by: Peter Korsgaard --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 051b661fe..5f7114853 100644 --- a/Makefile +++ b/Makefile @@ -386,7 +386,7 @@ $(BUILD_DIR)/.root: touch $(STAGING_DIR)/.fakeroot.00000; \ fi -find $(TARGET_DIR) -type d -name CVS -print0 -o -name .svn -print0 | xargs -0 rm -rf - -find $(TARGET_DIR) -type f -name .empty -print0 | xargs -0 rm -rf + -find $(TARGET_DIR) -type f \( -name .empty -o -name '*~' \) -print0 | xargs -0 rm -rf touch $@ $(TARGET_DIR): $(BUILD_DIR)/.root -- cgit v1.2.3