]> git.notmuchmail.org Git - notmuch/blobdiff - test/Makefile.local
build system: clean up object files in ./test and ./util
[notmuch] / test / Makefile.local
index cf7abc74a400e3b931af7eee43b09fc13b63a57c..9b3308a1bbb511840818396a69b5d55125805e0b 100644 (file)
@@ -2,11 +2,19 @@
 
 dir := test
 
-$(dir)/smtp-dummy: $(dir)/smtp-dummy.c
+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
+.PHONY: test check
 test:  all $(dir)/smtp-dummy
        @${dir}/notmuch-test $(OPTIONS)
 
-CLEAN := $(CLEAN) $(dir)/smtp-dummy
+check: test
+
+CLEAN := $(CLEAN) $(dir)/smtp-dummy $(dir)/smtp-dummy.o