]> git.notmuchmail.org Git - notmuch/blobdiff - test/Makefile.local
build system: clean up object files in ./test and ./util
[notmuch] / test / Makefile.local
index a95484417761eefb93c78d63c2912007729722cb..9b3308a1bbb511840818396a69b5d55125805e0b 100644 (file)
@@ -2,6 +2,19 @@
 
 dir := test
 
-.PHONY: test
-test:  all
-       @${dir}/notmuch-test
+smtp_dummy_srcs =              \
+       $(notmuch_compat_srcs)  \
+       $(dir)/smtp-dummy.c
+
+smtp_dummy_modules = $(smtp_dummy_srcs:.c=.o)
+
+$(dir)/smtp-dummy: $(smtp_dummy_modules)
+       $(call quiet,CC) $^ -o $@
+
+.PHONY: test check
+test:  all $(dir)/smtp-dummy
+       @${dir}/notmuch-test $(OPTIONS)
+
+check: test
+
+CLEAN := $(CLEAN) $(dir)/smtp-dummy $(dir)/smtp-dummy.o