mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 07:04:22 +01:00
external/Makefile: fix mkdir rule for libbacktrace.a
The $(TARGET_DIR) may not exist: use mkdir -p. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
committed by
neil saitug
parent
b3d5220da5
commit
2c9ad7ea29
2
external/Makefile
vendored
2
external/Makefile
vendored
@@ -89,7 +89,7 @@ $(TARGET_DIR)/libjsmn.a: $(TARGET_DIR)/jsmn-build/jsmn.o
|
||||
|
||||
# Need separate build dir: changes inside submodule make git think it's dirty.
|
||||
$(TARGET_DIR)/libbacktrace.a: external/libbacktrace/backtrace.h
|
||||
@mkdir $(TARGET_DIR)/libbacktrace-build 2>/dev/null || true
|
||||
mkdir -p $(TARGET_DIR)/libbacktrace-build
|
||||
cd $(TARGET_DIR)/libbacktrace-build && $(TOP)/libbacktrace/configure CC="$(CC)" --enable-static=yes $(CROSSCOMPILE_OPTS) --enable-shared=no --prefix=/ --libdir=/ && $(MAKE)
|
||||
$(MAKE) -C $(TARGET_DIR)/libbacktrace-build DESTDIR=$$(pwd)/$(TARGET_DIR) install-exec
|
||||
|
||||
|
||||
Reference in New Issue
Block a user