diff options
author | Gilles Peskine <Gilles.Peskine@arm.com> | 2020-08-21 19:47:22 +0200 |
---|---|---|
committer | Gilles Peskine <Gilles.Peskine@arm.com> | 2020-08-21 20:43:32 +0200 |
commit | d1ff7579c866c63eb489516493dba53270133ecb (patch) | |
tree | 0c780c8c7dba23e3247fd6a2cc1a4c8ad4602164 /tests/data_files | |
parent | 384e274670c2c2f50b05f8ca6705628f5beda990 (diff) | |
download | mbedtls-d1ff7579c866c63eb489516493dba53270133ecb.zip mbedtls-d1ff7579c866c63eb489516493dba53270133ecb.tar.gz mbedtls-d1ff7579c866c63eb489516493dba53270133ecb.tar.bz2 |
Fix "make -C tests/data_files"
It wasn't working when invoking programs/x509/cert_write or
programs/x509/cert_req due to relying on the current directory rather
than the location of the makefile.
Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
Diffstat (limited to 'tests/data_files')
-rw-r--r-- | tests/data_files/Makefile | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/data_files/Makefile b/tests/data_files/Makefile index 40c22f5..9d4cca2 100644 --- a/tests/data_files/Makefile +++ b/tests/data_files/Makefile @@ -13,8 +13,10 @@ ## Tools OPENSSL ?= openssl FAKETIME ?= faketime -MBEDTLS_CERT_WRITE ?= $(PWD)/../../programs/x509/cert_write -MBEDTLS_CERT_REQ ?= $(PWD)/../../programs/x509/cert_req + +TOP_DIR = $(dir $(firstword $(MAKEFILE_LIST)))/../.. +MBEDTLS_CERT_WRITE ?= $(TOP_DIR)/programs/x509/cert_write +MBEDTLS_CERT_REQ ?= $(TOP_DIR)/programs/x509/cert_req ## Build the generated test data. Note that since the final outputs |