]> git.notmuchmail.org Git - notmuch/commitdiff
test: use $(srcdir) instead of . as include path
authorDavid Bremner <david@tethera.net>
Thu, 20 Mar 2014 00:48:04 +0000 (21:48 -0300)
committerDavid Bremner <david@tethera.net>
Tue, 25 Mar 2014 11:32:10 +0000 (08:32 -0300)
This is needed for out of tree builds. The functional change is the
modification of extra_cflags; the other changes are cosmetic.

test/Makefile.local

index 36b1c1b71de08f598f4b9e314170a3e186c14ec4..ae9db809a1e086f10787a147c7cbfe2c3ade5f32 100644 (file)
@@ -4,7 +4,7 @@ dir := test
 
 # save against changes in $(dir)
 test_src_dir := $(dir)
-extra_cflags += -I.
+extra_cflags += -I$(srcdir)
 
 smtp_dummy_srcs =              \
        $(notmuch_compat_srcs)  \
@@ -13,10 +13,10 @@ smtp_dummy_srcs =           \
 smtp_dummy_modules = $(smtp_dummy_srcs:.c=.o)
 
 $(dir)/arg-test: $(dir)/arg-test.o command-line-arguments.o util/libutil.a
-       $(call quiet,CC) -I. $^ -o $@
+       $(call quiet,CC) $^ -o $@
 
 $(dir)/hex-xcode: $(dir)/hex-xcode.o command-line-arguments.o util/libutil.a
-       $(call quiet,CC) -I. $^ -o $@ -ltalloc
+       $(call quiet,CC) $^ -o $@ -ltalloc
 
 random_corpus_deps =  $(dir)/random-corpus.o  $(dir)/database-test.o \
                        notmuch-config.o command-line-arguments.o \