From 57f6f74ee043d392620b0fe98c3731ea3be676c2 Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Mon, 29 Jun 2020 10:32:04 +0930 Subject: [PATCH] external/Makefile: fix spurious rebuilds. Quote marks are not special to make: as it can't find external/"x86_64-linux-gnu"/libwally-core-build/src/libwallycore.la it always insists on rebuilding it (which rebuilds the world). If we have spaces in TARGET_DIR, we're in trouble already. Signed-off-by: Rusty Russell Changelog-None --- external/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/external/Makefile b/external/Makefile index c47fdf52a..66a3e1354 100644 --- a/external/Makefile +++ b/external/Makefile @@ -7,9 +7,9 @@ SUBMODULES = \ TOP := ../.. ifdef BUILD CROSSCOMPILE_OPTS := --host="$(MAKE_HOST)" --build="$(BUILD)" -TARGET_DIR := external/"$(MAKE_HOST)" +TARGET_DIR := external/$(MAKE_HOST) else -TARGET_DIR := external/"$(shell ${CC} -dumpmachine)" +TARGET_DIR := external/$(shell ${CC} -dumpmachine) endif LIBSODIUM_HEADERS := external/libsodium/src/libsodium/include/sodium.h