diff --git a/plugins/Makefile b/plugins/Makefile index aab6c973..5abe2a64 100644 --- a/plugins/Makefile +++ b/plugins/Makefile @@ -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 : diff --git a/plugins/persist-sqlite/Makefile b/plugins/persist-sqlite/Makefile index fc3612e4..809fbe48 100644 --- a/plugins/persist-sqlite/Makefile +++ b/plugins/persist-sqlite/Makefile @@ -23,11 +23,7 @@ OBJS = \ OBJS_EXTERNAL = \ json_help.o -ifeq ($(WITH_SQLITE),yes) ALL_DEPS:= binary -else -ALL_DEPS:= -endif all : ${ALL_DEPS}