aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar David Bremner <david@tethera.net>2014-05-04 15:10:49 +0900
committerGravatar David Bremner <david@tethera.net>2014-05-28 09:52:10 -0300
commitfe8cd90f97a078336612cd441a783096d6350564 (patch)
tree2716256dc94e5f86401f2aeb42f1122e418ffcf7
parent18565743949174e28576a751ae18b90dcfc60c40 (diff)
build: add dataclean
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.
-rw-r--r--Makefile.local4
-rw-r--r--performance-test/Makefile.local1
-rw-r--r--test/test-databases/Makefile.local2
3 files changed, 6 insertions, 1 deletions
diff --git a/Makefile.local b/Makefile.local
index 07e92964..3377d55e 100644
--- a/Makefile.local
+++ b/Makefile.local
@@ -262,6 +262,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 cbea2d36..3469aa3d 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 0572e784..ff333a1d 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}