]> git.notmuchmail.org Git - notmuch/blobdiff - test/Makefile.local
Makefile: Support "make check" as alias for "make test"
[notmuch] / test / Makefile.local
index a95484417761eefb93c78d63c2912007729722cb..7b602bcf88fadfb35fdc50377f62c7a90f513d59 100644 (file)
@@ -2,6 +2,13 @@
 
 dir := test
 
-.PHONY: test
-test:  all
-       @${dir}/notmuch-test
+$(dir)/smtp-dummy: $(dir)/smtp-dummy.c
+       $(call quiet,CC) $^ -o $@
+
+.PHONY: test check
+test:  all $(dir)/smtp-dummy
+       @${dir}/notmuch-test $(OPTIONS)
+
+check: test
+
+CLEAN := $(CLEAN) $(dir)/smtp-dummy