diff options
author | Gilles Peskine <Gilles.Peskine@arm.com> | 2020-09-24 16:36:04 +0200 |
---|---|---|
committer | Gilles Peskine <Gilles.Peskine@arm.com> | 2020-09-24 16:36:04 +0200 |
commit | 18035635727e165a978e8fd5506fb4e48c7821ac (patch) | |
tree | 1e3e32cc6af3f280c25be5d97257dc2cc032e569 /tests/data_files | |
parent | 0f38590edfa8da39a477aed36a14d9f125dee09d (diff) | |
download | mbedtls-18035635727e165a978e8fd5506fb4e48c7821ac.zip mbedtls-18035635727e165a978e8fd5506fb4e48c7821ac.tar.gz mbedtls-18035635727e165a978e8fd5506fb4e48c7821ac.tar.bz2 |
Fix "make -C tests/data_files -f ..."
The toplevel directory is actually just ../..: the makefile commands
are executed in the subdirectory. $(PWD) earlier was wrong because it
comes from the shell, not from make. Looking up $(MAKEFILE_LIST) is
wrong because it indicates where the makefile is (make -f), not which
directory to work in (make -C).
Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
Diffstat (limited to 'tests/data_files')
-rw-r--r-- | tests/data_files/Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/data_files/Makefile b/tests/data_files/Makefile index 9d4cca2..78de76d 100644 --- a/tests/data_files/Makefile +++ b/tests/data_files/Makefile @@ -14,7 +14,7 @@ OPENSSL ?= openssl FAKETIME ?= faketime -TOP_DIR = $(dir $(firstword $(MAKEFILE_LIST)))/../.. +TOP_DIR = ../.. MBEDTLS_CERT_WRITE ?= $(TOP_DIR)/programs/x509/cert_write MBEDTLS_CERT_REQ ?= $(TOP_DIR)/programs/x509/cert_req |