From c201677abf9915ea9194d96a6ec31c80e1e61aee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Sat, 8 Feb 2020 16:36:17 +0100 Subject: Disable proto plugin if gpb/protobuffs not in deps --- plugins/protobuffs.mk | 2 ++ 1 file changed, 2 insertions(+) (limited to 'plugins') diff --git a/plugins/protobuffs.mk b/plugins/protobuffs.mk index b4f9ce6..809df42 100644 --- a/plugins/protobuffs.mk +++ b/plugins/protobuffs.mk @@ -9,6 +9,7 @@ proto_verbose = $(proto_verbose_$(V)) # Core targets. ifneq ($(wildcard src/),) +ifneq ($(filter gpb protobuffs,$(BUILD_DEPS) $(DEPS)),) PROTO_FILES := $(filter %.proto,$(ALL_SRC_FILES)) ERL_FILES += $(addprefix src/,$(patsubst %.proto,%_pb.erl,$(notdir $(PROTO_FILES)))) @@ -55,3 +56,4 @@ $(PROJECT).d:: $(PROTO_FILES) $(if $(strip $?),$(proto_verbose) $(call erlang,$(call compile_proto.erl,$?))) endif endif +endif -- cgit v1.2.3