unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
From: David Bremner <david@tethera.net>
To: notmuch@notmuchmail.org
Subject: [PATCH 3/3] build: add dataclean
Date: Sun,  4 May 2014 15:10:49 +0900	[thread overview]
Message-ID: <1399183849-25032-3-git-send-email-david@tethera.net> (raw)
In-Reply-To: <1399183849-25032-1-git-send-email-david@tethera.net>

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

  parent reply	other threads:[~2014-05-04  6:12 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-05-04  6:10 [PATCH 1/3] build: don't overwrite DISTCLEAN in performance-test David Bremner
2014-05-04  6:10 ` [PATCH 2/3] build: remove .tar.gz.tmp files in clean David Bremner
2014-05-04  6:10 ` David Bremner [this message]
2014-05-04  8:33 ` [PATCH 1/3] build: don't overwrite DISTCLEAN in performance-test Tomi Ollila
2014-05-28 13:01 ` David Bremner

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://notmuchmail.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1399183849-25032-3-git-send-email-david@tethera.net \
    --to=david@tethera.net \
    --cc=notmuch@notmuchmail.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).