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