Fix makefile build with WITH_SQLITE disabled

When using WITH_SQLITE=no, the build system correctly avoids to compile
the plugin, but the install step fails because it tries to install it
even if it has not been compiled.

This commit fixes this behaviour by totally omitting the plugin if
WITH_SQLITE=no is specified, so no compilation and no installation is
performed

Signed-off-by: Jesús Fernández Manzano <jesus.fernandez@titanos.tv>
This commit is contained in:
Jesús Fernández Manzano
2026-02-18 17:37:58 +01:00
committed by Roger A. Light
parent 7809621098
commit c6669ef715
2 changed files with 4 additions and 5 deletions

View File

@@ -3,9 +3,12 @@ DIRS= \
dynamic-security \
examples \
password-file \
persist-sqlite \
sparkplug-aware
ifeq ($(WITH_SQLITE),yes)
DIRS+=persist-sqlite
endif
.PHONY : all binary check clean reallyclean test test-compile install uninstall
all :

View File

@@ -23,11 +23,7 @@ OBJS = \
OBJS_EXTERNAL = \
json_help.o
ifeq ($(WITH_SQLITE),yes)
ALL_DEPS:= binary
else
ALL_DEPS:=
endif
all : ${ALL_DEPS}