2014-03-01 16:12:44 -04:00
|
|
|
# -*- makefile -*-
|
|
|
|
|
2016-06-02 12:26:14 -04:00
|
|
|
TEST_DATABASE_MIRROR=https://notmuchmail.org/releases/test-databases
|
2014-03-01 16:12:44 -04:00
|
|
|
|
|
|
|
dir := test/test-databases
|
|
|
|
|
|
|
|
test_databases := $(dir)/database-v1.tar.xz
|
|
|
|
|
|
|
|
%.tar.xz:
|
2017-03-12 14:59:33 +02:00
|
|
|
@exec 1>&2 ;\
|
|
|
|
if command -v wget >/dev/null ;\
|
|
|
|
then set -x; wget -nv -O $@ ${TEST_DATABASE_MIRROR}/$(notdir $@) ;\
|
|
|
|
elif command -v curl >/dev/null ;\
|
|
|
|
then set -x; curl -L -s -o $@ ${TEST_DATABASE_MIRROR}/$(notdir $@) ;\
|
|
|
|
else echo Cannot fetch databases, no wget nor curl available; exit 1 ;\
|
|
|
|
fi
|
2014-03-01 16:12:44 -04:00
|
|
|
|
|
|
|
download-test-databases: ${test_databases}
|
|
|
|
|
2014-05-04 15:10:49 +09:00
|
|
|
DATACLEAN := $(DATACLEAN) ${test_databases}
|