notmuch/test/test-databases/Makefile.local
David Bremner fe8cd90f97 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.
2014-05-28 09:52:10 -03:00

14 lines
315 B
Makefile

# -*- makefile -*-
TEST_DATABASE_MIRROR=http://notmuchmail.org/releases/test-databases
dir := test/test-databases
test_databases := $(dir)/database-v1.tar.xz
%.tar.xz:
wget -nv -O $@ ${TEST_DATABASE_MIRROR}/$(notdir $@);
download-test-databases: ${test_databases}
DATACLEAN := $(DATACLEAN) ${test_databases}