From d4e277d0638af0b5ddc5d83bfbbfd1a74900cf32 Mon Sep 17 00:00:00 2001 From: David Bremner Date: Sun, 4 May 2014 15:10:49 +0900 Subject: [PATCH] [PATCH 3/3] build: add dataclean --- a0/9d8d2090d6d780c4d72ad0b1e97b30a1eb9aa8 | 97 +++++++++++++++++++++++ 1 file changed, 97 insertions(+) create mode 100644 a0/9d8d2090d6d780c4d72ad0b1e97b30a1eb9aa8 diff --git a/a0/9d8d2090d6d780c4d72ad0b1e97b30a1eb9aa8 b/a0/9d8d2090d6d780c4d72ad0b1e97b30a1eb9aa8 new file mode 100644 index 000000000..457ada4bf --- /dev/null +++ b/a0/9d8d2090d6d780c4d72ad0b1e97b30a1eb9aa8 @@ -0,0 +1,97 @@ +Return-Path: +X-Original-To: notmuch@notmuchmail.org +Delivered-To: notmuch@notmuchmail.org +Received: from localhost (localhost [127.0.0.1]) + by olra.theworths.org (Postfix) with ESMTP id 6FCFA429E45 + for ; Sat, 3 May 2014 23:12:22 -0700 (PDT) +X-Virus-Scanned: Debian amavisd-new at olra.theworths.org +X-Spam-Flag: NO +X-Spam-Score: 0 +X-Spam-Level: +X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none] + autolearn=disabled +Received: from olra.theworths.org ([127.0.0.1]) + by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) + with ESMTP id m+zmkv2kZyYX for ; + Sat, 3 May 2014 23:12:17 -0700 (PDT) +Received: from mx.xen14.node3324.gplhost.com (gitolite.debian.net + [87.98.215.224]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) + (No client certificate requested) + by olra.theworths.org (Postfix) with ESMTPS id 39DBF429E37 + for ; Sat, 3 May 2014 23:12:16 -0700 (PDT) +Received: from remotemail by mx.xen14.node3324.gplhost.com with local (Exim + 4.72) (envelope-from ) + id 1WgpeA-0005h8-I5; Sun, 04 May 2014 06:11:34 +0000 +Received: (nullmailer pid 25097 invoked by uid 1000); Sun, 04 May 2014 + 06:11:14 -0000 +From: David Bremner +To: notmuch@notmuchmail.org +Subject: [PATCH 3/3] build: add dataclean +Date: Sun, 4 May 2014 15:10:49 +0900 +Message-Id: <1399183849-25032-3-git-send-email-david@tethera.net> +X-Mailer: git-send-email 1.9.2 +In-Reply-To: <1399183849-25032-1-git-send-email-david@tethera.net> +References: <1399183849-25032-1-git-send-email-david@tethera.net> +X-BeenThere: notmuch@notmuchmail.org +X-Mailman-Version: 2.1.13 +Precedence: list +List-Id: "Use and development of the notmuch mail system." + +List-Unsubscribe: , + +List-Archive: +List-Post: +List-Help: +List-Subscribe: , + +X-List-Received-Date: Sun, 04 May 2014 06:12:22 -0000 + +It turns out to be inconvenient to delete the downloaded datafiles with +distclean, so I propose a new target which does that instead. + +The closest conventional target is 'maintainer-clean'; the difference +here is that having the original source tarball is not enough to +reconstruct these files. +--- + Makefile.local | 4 ++++ + performance-test/Makefile.local | 1 + + test/test-databases/Makefile.local | 2 +- + 3 files changed, 6 insertions(+), 1 deletion(-) + +diff --git a/Makefile.local b/Makefile.local +index b46917b..97b582d 100644 +--- a/Makefile.local ++++ b/Makefile.local +@@ -261,6 +261,10 @@ clean: + distclean: clean + rm -rf $(DISTCLEAN) + ++.PHONY: dataclean ++dataclean: distclean ++ rm -rf $(DATACLEAN) ++ + notmuch_client_srcs = \ + command-line-arguments.c\ + debugger.c \ +diff --git a/performance-test/Makefile.local b/performance-test/Makefile.local +index cbea2d3..3469aa3 100644 +--- a/performance-test/Makefile.local ++++ b/performance-test/Makefile.local +@@ -41,3 +41,4 @@ download-corpus: + + CLEAN := $(CLEAN) $(dir)/tmp.* $(dir)/log.* + DISTCLEAN := $(DISTCLEAN) $(dir)/corpus $(dir)/notmuch.cache.* ++DATACLEAN := $(DATACLEAN) $(TXZFILE) +diff --git a/test/test-databases/Makefile.local b/test/test-databases/Makefile.local +index 0572e78..ff333a1 100644 +--- a/test/test-databases/Makefile.local ++++ b/test/test-databases/Makefile.local +@@ -11,4 +11,4 @@ test_databases := $(dir)/database-v1.tar.xz + + download-test-databases: ${test_databases} + +-DISTCLEAN := $(DISTCLEAN) ${test_databases} ++DATACLEAN := $(DATACLEAN) ${test_databases} +-- +1.9.2 + -- 2.26.2