X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=test%2FMakefile.local;h=1c85b18adc414ea69d5b491b3c87c97e0dd39c3e;hp=99324ba1e75b790cdc298337b8b6a51c35649ce0;hb=c2d8236b56e713ae2e7053c9ea3cc13f7d1283c4;hpb=28d7544ae2adfe6467c6b64a3284f5ed13f81e1a diff --git a/test/Makefile.local b/test/Makefile.local index 99324ba1..1c85b18a 100644 --- a/test/Makefile.local +++ b/test/Makefile.local @@ -2,7 +2,9 @@ dir := test -extra_cflags += -I. +# save against changes in $(dir) +test_src_dir := $(dir) +extra_cflags += -I$(srcdir) smtp_dummy_srcs = \ $(notmuch_compat_srcs) \ @@ -11,10 +13,10 @@ smtp_dummy_srcs = \ smtp_dummy_modules = $(smtp_dummy_srcs:.c=.o) $(dir)/arg-test: $(dir)/arg-test.o command-line-arguments.o util/libutil.a - $(call quiet,CC) -I. $^ -o $@ + $(call quiet,CC) $^ -o $@ $(dir)/hex-xcode: $(dir)/hex-xcode.o command-line-arguments.o util/libutil.a - $(call quiet,CC) -I. $^ -o $@ -ltalloc + $(call quiet,CC) $^ $(TALLOC_LDFLAGS) -o $@ random_corpus_deps = $(dir)/random-corpus.o $(dir)/database-test.o \ notmuch-config.o command-line-arguments.o \ @@ -45,7 +47,7 @@ TEST_BINARIES=$(dir)/arg-test \ test-binaries: $(TEST_BINARIES) test: all test-binaries - @${dir}/notmuch-test $(OPTIONS) + @${test_src_dir}/notmuch-test $(OPTIONS) check: test