forked from hobofan/rules_proto_grpc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
76 lines (55 loc) · 1.75 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
# 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 cargo raze on the rust dependencies
.PHONY: rust_raze
rust_raze:
cd rust/raze; \
rm Cargo.raze.lock || true; \
rm -r remote; \
cargo raze;
# 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:
rm python/requirements.txt; \
pip-compile python/requirements.in --output-file python/requirements.txt
# 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_raze 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