# --------------------------------------------------------------------- # -- Which container tool to use # --------------------------------------------------------------------- CONTAINER_TOOL ?= docker container-go-protobuf: $(CONTAINER_TOOL) build -t gogen . && \ $(CONTAINER_TOOL) run --rm \ -v $$(pwd)/proto:/proto \ -v $$(pwd)/lib:/out \ gogen \ protoc \ --dart_out=grpc:/out/ \ --proto_path=proto/proto \ $$(find proto -type f -iname "*.proto") update-exports: rm -f ./lib/main.dart && \ cd lib && \ for file in $$(find . -type f -iname "*.dart" ! -name "main.dart") ; do \ echo "export '$${file}';" >> main.dart ; \ done