Make plugin build dependent on WITH_CJSON

Signed-off-by: Andreas Kempf <aakempf@gmail.com>
This commit is contained in:
Andreas Kempf
2022-05-18 17:20:41 +02:00
committed by Andreas Kempf
parent 28e3495012
commit a6d1f7b4d0
+8
View File
@@ -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"