mirror of
https://git.notmuchmail.org/git/notmuch
synced 2025-01-18 09:15:56 +01:00
test: don't use $(dir) in recipes.
According the semantics of make, the expansion of $(dir) in recipes uses dynamic scope, i.e. the value at the time the recipe is run. This means if test/Makefile.local is not the last sub-makefile included, all heck breaks loose.
This commit is contained in:
parent
268a33f4c2
commit
b21f0f6802
1 changed files with 3 additions and 1 deletions
|
@ -2,6 +2,8 @@
|
|||
|
||||
dir := test
|
||||
|
||||
# save against changes in $(dir)
|
||||
test_src_dir := $(dir)
|
||||
extra_cflags += -I.
|
||||
|
||||
smtp_dummy_srcs = \
|
||||
|
@ -45,7 +47,7 @@ TEST_BINARIES=$(dir)/arg-test \
|
|||
test-binaries: $(TEST_BINARIES)
|
||||
|
||||
test: all test-binaries
|
||||
@${dir}/notmuch-test $(OPTIONS)
|
||||
@${test_src_dir}/notmuch-test $(OPTIONS)
|
||||
|
||||
check: test
|
||||
|
||||
|
|
Loading…
Reference in a new issue