]> git.notmuchmail.org Git - notmuch/blob - test/Makefile.local
test: Link to compat files when building program during "make test"
[notmuch] / test / Makefile.local
1 # -*- makefile -*-
2
3 dir := test
4
5 smtp_dummy_srcs =               \
6         $(notmuch_compat_srcs)  \
7         $(dir)/smtp-dummy.c
8
9 smtp_dummy_modules = $(smtp_dummy_srcs:.c=.o)
10
11 $(dir)/smtp-dummy: $(smtp_dummy_modules)
12         $(call quiet,CC) $^ -o $@
13
14 .PHONY: test check
15 test:   all $(dir)/smtp-dummy
16         @${dir}/notmuch-test $(OPTIONS)
17
18 check: test
19
20 CLEAN := $(CLEAN) $(dir)/smtp-dummy