From fe8cd90f97a078336612cd441a783096d6350564 Mon Sep 17 00:00:00 2001 From: David Bremner Date: Sun, 4 May 2014 15:10:49 +0900 Subject: [PATCH] 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. --- 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 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} -- 2.43.0