File: Makefile.local

package info (click to toggle)
notmuch 0.40-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 7,120 kB
  • sloc: sh: 22,063; ansic: 14,938; lisp: 9,090; cpp: 8,030; python: 6,342; perl: 391; makefile: 231; javascript: 34; ruby: 9
file content (44 lines) | stat: -rw-r--r-- 1,107 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# -*- makefile-gmake -*-

dir := performance-test

include $(srcdir)/$(dir)/version.sh

TIME_TEST_SCRIPT := ${dir}/notmuch-time-test
MEMORY_TEST_SCRIPT := ${dir}/notmuch-memory-test

CORPUS_NAME := notmuch-email-corpus-$(PERFTEST_VERSION).tar.xz
TXZFILE := ${dir}/download/${CORPUS_NAME}
SIGFILE := ${TXZFILE}.asc
DEFAULT_URL :=  https://notmuchmail.org/releases/${CORPUS_NAME}

perf-test: time-test memory-test

time-test: setup-perf-test all
	@echo
	$(TIME_TEST_SCRIPT) $(OPTIONS)

memory-test: setup-perf-test all
	@echo
	$(MEMORY_TEST_SCRIPT) $(OPTIONS)


.PHONY: download-corpus setup-perf-test

# Note that this intentionally does not depend on download-corpus.
setup-perf-test: $(TXZFILE)
	gpg --verify $(SIGFILE)

$(TXZFILE):
	@printf "\nPlease download ${TXZFILE} using:\n\n"
	@printf "\t%% make download-corpus\n\n"
	@echo or see https://notmuchmail.org/corpus for download locations
	@echo
	@false

download-corpus:
	wget -O ${TXZFILE} ${DEFAULT_URL}

CLEAN := $(CLEAN) $(dir)/tmp.* $(dir)/log.*
DISTCLEAN := $(DISTCLEAN) $(dir)/corpus $(dir)/notmuch.cache.*
DATACLEAN := $(DATACLEAN) $(TXZFILE)