3 TEST_DATABASE_MIRROR=https://notmuchmail.org/releases/test-databases
5 dir := test/test-databases
7 test_databases := $(dir)/database-v1.tar.xz
11 if command -v wget >/dev/null ;\
12 then set -x; wget -nv -O $@ ${TEST_DATABASE_MIRROR}/$(notdir $@) ;\
13 elif command -v curl >/dev/null ;\
14 then set -x; curl -L -s -o $@ ${TEST_DATABASE_MIRROR}/$(notdir $@) ;\
15 else echo Cannot fetch databases, no wget nor curl available; exit 1 ;\
18 download-test-databases: ${test_databases}
20 DATACLEAN := $(DATACLEAN) ${test_databases}