]> git.notmuchmail.org Git - notmuch/blobdiff - test/Makefile.local
test: conditionally test compact depending on configured support
[notmuch] / test / Makefile.local
index ae9db809a1e086f10787a147c7cbfe2c3ade5f32..2b18bdb92af1b43bcbe25dc15fd6f1e66fc935a2 100644 (file)
@@ -35,9 +35,17 @@ $(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
+
 .PHONY: test check
 
 TEST_BINARIES=$(dir)/arg-test \
+             $(dir)/have-compact \
              $(dir)/hex-xcode \
              $(dir)/random-corpus \
              $(dir)/parse-time \