mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-12-18 07:24:51 +01:00
c454135376
Use `makefile-gmake-mode' instead of `makefile-mode' because the former also highlights ifdef et al. while the latter does not. "./Makefile.global" and one "Makefile.local" failed to specify any major mode at all but doing so is necessary because Emacs does not automatically figure out that these are Makefiles (of any flavor).
44 lines
1.1 KiB
Text
44 lines
1.1 KiB
Text
# -*- 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)
|