This repository has been archived by the owner on Oct 1, 2024. It is now read-only.
forked from rules-proto-grpc/rules_proto_grpc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
85 lines (66 loc) · 2.27 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
# Run the rulegen system
rulegen:
bazel query '//example/routeguide/... - attr(tags, manual, //example/routeguide/...)' > available_tests.txt; \
bazel run --run_under="cd $$PWD && " //tools/rulegen -- --ref=$$(git describe --abbrev=0 --tags); \
rm available_tests.txt; \
# Run cargo raze on the rust dependencies
rust_raze:
cd rust/raze; \
rm Cargo.lock; \
rm -r remote; \
cargo raze; \
mv BUILD.bazel BUILD.bazel.suffix; \
cat BUILD.bazel.prefix BUILD.bazel.suffix > BUILD.bazel; \
rm BUILD.bazel.suffix; \
sed -i 's#":protobuf_build_script",#":protobuf_build_script","@rules_proto_grpc//rust/raze:rustc",#' remote/protobuf-*.BUILD.bazel; \
# Run yarn to upgrade the nodejs dependencies
yarn_upgrade:
cd nodejs/requirements; \
yarn install; \
# Run bundle to upgrade the Ruby dependencies
ruby_bundle_upgrade:
cd ruby; \
bundle install --path /tmp/ruby-bundle; \
# Run all language specific updates
all_updates: rust_raze yarn_upgrade ruby_bundle_upgrade
# A collection of targets that build routeguide clients
clients:
bazel build \
//cpp/example/routeguide:client \
//go/example/routeguide/client \
//java/example/routeguide:client \
//python/example/routeguide:client \
//scala/example/routeguide:client \
# A collection of targets that build routeguide servers
servers:
bazel build \
//cpp/example/routeguide:server \
//go/example/routeguide/server \
//java/example/routeguide:server \
//python/example/routeguide:server \
//scala/example/routeguide:server \
# A collection of test targets
tests:
bazel test \
//closure/example/routeguide/... \
//cpp/example/routeguide/... \
//java/example/routeguide/... \
//go/example/routeguide/... \
pending_clients:
bazel build \
//android/example/routeguide:client \
//closure/example/routeguide/client \
//nodejs/example/routeguide:client \
//ruby/example/routeguide:client \
//github.com/grpc/grpc-web/example/routeguide/closure:bundle \
//rust/example/routeguide:client
pending_servers:
bazel build \
//nodejs/example/routeguide:server \
//ruby/example/routeguide:server \
//rust/example/routeguide:server
all: clients servers tests
# Pull in auto-generated examples makefile
include example/Makefile.mk
# Pull in auto-generated test workspaces makefile
include test_workspaces/Makefile.mk