package/pkg-rebar.mk: change semantic of <PKG>_KEEP_DEPENDENCIES

Set it to NO by default and check if it is equal to NO. This is to
be more consistent with other boolean variables in Buildroot.

Signed-off-by: Johan Oudinet <johan.oudinet@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
Johan Oudinet 2018-12-05 17:06:17 +01:00 committed by Thomas Petazzoni
parent ab60ea2939
commit 9b28acb686

View file

@ -234,9 +234,11 @@ $(2)_REBAR = rebar
$(2)_DEPENDENCIES += host-erlang-rebar
endif
$(2)_KEEP_DEPENDENCIES ?= NO
# Remove dependencies listed in rebar.config unless the package says
# otherwise
ifeq ($$($(2)_KEEP_DEPENDENCIES),)
ifeq ($$($(2)_KEEP_DEPENDENCIES),NO)
$(2)_POST_PATCH_HOOKS += remove-rebar-config-dependencies
endif