From a6d1f7b4d008ff3e4df5d051d56aa88c2b2e4758 Mon Sep 17 00:00:00 2001 From: Andreas Kempf Date: Mon, 16 May 2022 11:23:56 +0200 Subject: [PATCH] Make plugin build dependent on WITH_CJSON Signed-off-by: Andreas Kempf --- plugins/persist-sqlite/Makefile | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/plugins/persist-sqlite/Makefile b/plugins/persist-sqlite/Makefile index 41ad7958..104574c6 100644 --- a/plugins/persist-sqlite/Makefile +++ b/plugins/persist-sqlite/Makefile @@ -23,6 +23,12 @@ else ALL_DEPS:= endif +ifeq ($(WITH_CJSON),yes) +ALL_DEPS:=$(ALL_DEPS) +else +ALL_DEPS:= +endif + all : ${ALL_DEPS} binary : ${PLUGIN_NAME}.so @@ -65,9 +71,11 @@ test: install: all ifeq ($(WITH_SQLITE),yes) +ifeq ($(WITH_CJSON),yes) $(INSTALL) -d "${DESTDIR}$(libdir)" $(INSTALL) ${STRIP_OPTS} ${PLUGIN_NAME}.so "${DESTDIR}${libdir}/${PLUGIN_NAME}.so" endif +endif uninstall : -rm -f "${DESTDIR}${libdir}/${PLUGIN_NAME}.so"