2014-03-01 21:12:44 +01:00
|
|
|
# -*- makefile -*-
|
|
|
|
|
2016-06-02 18:26:14 +02:00
|
|
|
TEST_DATABASE_MIRROR=https://notmuchmail.org/releases/test-databases
|
2014-03-01 21:12:44 +01:00
|
|
|
|
|
|
|
dir := test/test-databases
|
|
|
|
|
|
|
|
test_databases := $(dir)/database-v1.tar.xz
|
|
|
|
|
|
|
|
%.tar.xz:
|
2017-03-12 13:59:33 +01: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 21:12:44 +01:00
|
|
|
|
|
|
|
download-test-databases: ${test_databases}
|
|
|
|
|
2014-05-04 08:10:49 +02:00
|
|
|
DATACLEAN := $(DATACLEAN) ${test_databases}
|