Makefile 589 B

123456789101112131415161718192021
  1. default: build
  2. build: clear
  3. swift build
  4. cp .build/debug/protoc-gen-swiftgrpc .
  5. cp .build/debug/protoc-gen-swift .
  6. test: build
  7. protoc ../Examples/Echo/echo.proto --proto_path=../Examples/Echo --plugin=./protoc-gen-swiftgrpc --swiftgrpc_out=. --swift_out=. --swiftgrpc_opt=TestStubs=true
  8. diff echo.grpc.swift ../Examples/Echo/Generated/echo.grpc.swift
  9. deploy:
  10. cp echo.grpc.swift ../Examples/Echo/Generated/echo.grpc.swift
  11. clear :
  12. rm -f *.pb.swift *.grpc.swift
  13. clean : clear
  14. rm -rf protoc-gen-swiftgrpc Packages .build protoc-gen-swift Package.pins
  15. rm -rf Package.resolved