[PATCH 3/3] build: add dataclean
David Bremner
david at tethera.net
Sat May 3 23:10:49 PDT 2014
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
More information about the notmuch
mailing list