mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-24 09:34:24 +01:00
Makefile: don't try to build sql plugin if there's no sqlite3 support.
Reported-by: @whitslack Fixes: #5940 Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
committed by
Vincenzo Palazzo
parent
456078150a
commit
bcab3f7e83
@@ -60,7 +60,6 @@ MANPAGES := doc/lightning-cli.1 \
|
||||
doc/lightning-listpeers.7 \
|
||||
doc/lightning-listpeerchannels.7 \
|
||||
doc/lightning-listsendpays.7 \
|
||||
doc/lightning-listsqlschemas.7 \
|
||||
doc/lightning-makesecret.7 \
|
||||
doc/lightning-multifundchannel.7 \
|
||||
doc/lightning-multiwithdraw.7 \
|
||||
@@ -86,7 +85,6 @@ MANPAGES := doc/lightning-cli.1 \
|
||||
doc/lightning-setchannel.7 \
|
||||
doc/lightning-sendcustommsg.7 \
|
||||
doc/lightning-signmessage.7 \
|
||||
doc/lightning-sql.7 \
|
||||
doc/lightning-staticbackup.7 \
|
||||
doc/lightning-txprepare.7 \
|
||||
doc/lightning-txdiscard.7 \
|
||||
@@ -110,6 +108,11 @@ MANPAGES := doc/lightning-cli.1 \
|
||||
doc/lightning-getlog.7 \
|
||||
doc/reckless.7
|
||||
|
||||
ifeq ($(HAVE_SQLITE3),1)
|
||||
MANPAGES += doc/lightning-listsqlschemas.7 \
|
||||
doc/lightning-sql.7
|
||||
endif
|
||||
|
||||
doc-all: $(MANPAGES) doc/index.rst
|
||||
|
||||
SCHEMAS := $(wildcard doc/schemas/*.json)
|
||||
|
||||
@@ -87,7 +87,6 @@ PLUGIN_ALL_HEADER := \
|
||||
$(PLUGIN_PAY_LIB_HEADER) \
|
||||
$(PLUGIN_OFFERS_HEADER) \
|
||||
$(PLUGIN_SPENDER_HEADER)
|
||||
PLUGIN_ALL_OBJS := $(PLUGIN_ALL_SRC:.c=.o)
|
||||
|
||||
C_PLUGINS := \
|
||||
plugins/autoclean \
|
||||
@@ -101,10 +100,16 @@ C_PLUGINS := \
|
||||
plugins/offers \
|
||||
plugins/pay \
|
||||
plugins/txprepare \
|
||||
plugins/sql \
|
||||
plugins/spenderp
|
||||
|
||||
ifeq ($(HAVE_SQLITE3),1)
|
||||
C_PLUGINS += plugins/sql
|
||||
PLUGIN_ALL_SRC += $(PLUGIN_SQL_SRC)
|
||||
PLUGIN_ALL_HEADER += $(PLUGIN_SQL_HEADER)
|
||||
endif
|
||||
|
||||
PLUGINS := $(C_PLUGINS)
|
||||
PLUGIN_ALL_OBJS := $(PLUGIN_ALL_SRC:.c=.o)
|
||||
|
||||
ifneq ($(RUST),0)
|
||||
# Builtin plugins must be in this plugins dir to work when we're executed
|
||||
|
||||
Reference in New Issue
Block a user