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.
This commit is contained in:
David Bremner 2014-05-04 15:10:49 +09:00
parent 1856574394
commit fe8cd90f97
3 changed files with 6 additions and 1 deletions

View file

@ -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 \

View file

@ -41,3 +41,4 @@ download-corpus:
CLEAN := $(CLEAN) $(dir)/tmp.* $(dir)/log.*
DISTCLEAN := $(DISTCLEAN) $(dir)/corpus $(dir)/notmuch.cache.*
DATACLEAN := $(DATACLEAN) $(TXZFILE)

View file

@ -11,4 +11,4 @@ test_databases := $(dir)/database-v1.tar.xz
download-test-databases: ${test_databases}
DISTCLEAN := $(DISTCLEAN) ${test_databases}
DATACLEAN := $(DATACLEAN) ${test_databases}