forked from rules-proto-grpc/rules_proto_grpc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
73 lines (52 loc) · 1.73 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
# Run the rulegen system
.PHONY: rulegen
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;
# Build docs locally
.PHONY: docs
docs:
python3 -m sphinx -c docs -a -E -T -W --keep-going docs docs/build
# Apply buildifier
.PHONY: buildifier
buildifier:
bazel run //tools:buildifier
# Run crate_universe to update the rust dependencies
.PHONY: rust_crates_vendor
rust_crates_vendor:
bazel run //rust:crates_vendor -- --repin
# Run yarn to upgrade the js dependencies
.PHONY: yarn_upgrade
yarn_upgrade:
cd js/requirements; \
rm yarn.lock; \
yarn install; \
# Run bundle to upgrade the Ruby dependencies
.PHONY: ruby_bundle_upgrade
ruby_bundle_upgrade:
cd ruby; \
rm Gemfile.lock; \
bundle install --path /tmp/ruby-bundle; \
# Run pip-compile to upgrade python dependencies
.PHONY: pip_compile
pip_compile:
echo '' > python/requirements.txt
bazel run //python:requirements.update
# Run C# package regeneration
.PHONY: csharp_regenerate_packages
csharp_regenerate_packages:
./csharp/nuget/regenerate_packages.sh
bazel run //tools:buildifier
# Run F# package regeneration
.PHONY: fsharp_regenerate_packages
fsharp_regenerate_packages:
./fsharp/nuget/regenerate_packages.sh
bazel run //tools:buildifier
# Run all language specific updates
.PHONY: all_updates
all_updates: rust_crates_vendor yarn_upgrade ruby_bundle_upgrade pip_compile csharp_regenerate_packages fsharp_regenerate_packages
# Pull in auto-generated examples makefile
include example/Makefile.mk
# Pull in auto-generated test workspaces makefile
include test_workspaces/Makefile.mk