mirror of
https://github.com/eclipse-mosquitto/mosquitto.git
synced 2026-09-23 16:43:49 +08:00
Make plugin build dependent on WITH_CJSON
Signed-off-by: Andreas Kempf <aakempf@gmail.com>
This commit is contained in:
committed by
Andreas Kempf
parent
28e3495012
commit
a6d1f7b4d0
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user