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>
This commit is contained in:
Gilles Peskine 2020-09-24 16:36:04 +02:00
parent b8d0c2a7b6
commit 85e05d87b5

View file

@ -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