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 <rusty@rustcorp.com.au>

Changelog-None
This commit is contained in:
Rusty Russell 2020-06-29 10:32:04 +09:30
parent 32f9805a30
commit 57f6f74ee0

4
external/Makefile vendored
View File

@ -7,9 +7,9 @@ SUBMODULES = \
TOP := ../.. TOP := ../..
ifdef BUILD ifdef BUILD
CROSSCOMPILE_OPTS := --host="$(MAKE_HOST)" --build="$(BUILD)" CROSSCOMPILE_OPTS := --host="$(MAKE_HOST)" --build="$(BUILD)"
TARGET_DIR := external/"$(MAKE_HOST)" TARGET_DIR := external/$(MAKE_HOST)
else else
TARGET_DIR := external/"$(shell ${CC} -dumpmachine)" TARGET_DIR := external/$(shell ${CC} -dumpmachine)
endif endif
LIBSODIUM_HEADERS := external/libsodium/src/libsodium/include/sodium.h LIBSODIUM_HEADERS := external/libsodium/src/libsodium/include/sodium.h