]> git.notmuchmail.org Git - notmuch/blob - test/test-databases/Makefile.local
Import notmuch_0.28.2.orig.tar.gz
[notmuch] / test / test-databases / Makefile.local
1 # -*- makefile -*-
2
3 TEST_DATABASE_MIRROR=https://notmuchmail.org/releases/test-databases
4
5 dir := test/test-databases
6
7 test_databases := $(dir)/database-v1.tar.xz
8
9 %.tar.xz:
10         @exec 1>&2 ;\
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 ;\
16         fi
17
18 download-test-databases: ${test_databases}
19
20 DATACLEAN := $(DATACLEAN) ${test_databases}