diff --git a/testing/makefiles/testcase.mk b/testing/makefiles/testcase.mk index 4dded863..85b2632a 100644 --- a/testing/makefiles/testcase.mk +++ b/testing/makefiles/testcase.mk @@ -1,4 +1,4 @@ -top_dir := $(dir $(lastword ${MAKEFILE_LIST}))../.. +top_dir := $(abspath $(dir $(lastword ${MAKEFILE_LIST}))../..) build_dir := ${top_dir}/_build/${testcase} diff --git a/tests/Makefile b/tests/Makefile index cd135f19..88f513ca 100644 --- a/tests/Makefile +++ b/tests/Makefile @@ -1,4 +1,7 @@ -top_dir := $(abspath $(dir $(lastword ${MAKEFILE_LIST}))..) + +tests_dir := $(abspath $(dir $(lastword ${MAKEFILE_LIST}))) + +top_dir := $(abspath $(tests_dir)/..) build_dir := ${top_dir}/_build