X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;f=test%2FMakefile.local;h=987441f04f1d689758e6825272d8b9c9210a2841;hb=d7d728a6220e490eae2445fd3b6afec470c8cf6a;hp=99324ba1e75b790cdc298337b8b6a51c35649ce0;hpb=28d7544ae2adfe6467c6b64a3284f5ed13f81e1a;p=notmuch diff --git a/test/Makefile.local b/test/Makefile.local index 99324ba1..987441f0 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) $^ -o $@ -ltalloc random_corpus_deps = $(dir)/random-corpus.o $(dir)/database-test.o \ notmuch-config.o command-line-arguments.o \ @@ -33,9 +35,25 @@ $(dir)/symbol-test: $(dir)/symbol-test.o lib/$(LINKER_NAME) $(dir)/parse-time: $(dir)/parse-time.o parse-time-string/parse-time-string.o $(call quiet,CC) $^ -o $@ +$(dir)/have-compact: Makefile.config +ifeq ($(HAVE_XAPIAN_COMPACT),1) + ln -sf /bin/true $@ +else + ln -sf /bin/false $@ +endif + +$(dir)/have-man: Makefile.config +ifeq ($(HAVE_SPHINX)$(HAVE_RST2MAN),00) + ln -sf /bin/false $@ +else + ln -sf /bin/true $@ +endif + .PHONY: test check TEST_BINARIES=$(dir)/arg-test \ + $(dir)/have-compact \ + $(dir)/have-man \ $(dir)/hex-xcode \ $(dir)/random-corpus \ $(dir)/parse-time \ @@ -45,7 +63,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