diff options
author | Loïc Hoguin <[email protected]> | 2020-02-08 16:36:17 +0100 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2020-02-08 16:40:37 +0100 |
commit | c201677abf9915ea9194d96a6ec31c80e1e61aee (patch) | |
tree | 8cddfb7a399836e71945bb679574c1aaad4d09aa /plugins/protobuffs.mk | |
parent | 3ed8c2fd9b5d154fa96246bb4e40b9ed46bad18f (diff) | |
download | erlang.mk-c201677abf9915ea9194d96a6ec31c80e1e61aee.tar.gz erlang.mk-c201677abf9915ea9194d96a6ec31c80e1e61aee.tar.bz2 erlang.mk-c201677abf9915ea9194d96a6ec31c80e1e61aee.zip |
Disable proto plugin if gpb/protobuffs not in deps
Diffstat (limited to 'plugins/protobuffs.mk')
-rw-r--r-- | plugins/protobuffs.mk | 2 |
1 files changed, 2 insertions, 0 deletions
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 |