From 85e05d87b59209b1d03c4c7e4b632be004273035 Mon Sep 17 00:00:00 2001 From: Gilles Peskine Date: Thu, 24 Sep 2020 16:36:04 +0200 Subject: [PATCH] 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 --- tests/data_files/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/data_files/Makefile b/tests/data_files/Makefile index aad016dd2..e7db1f5c8 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