rules_proto_grpc/Makefile

74 lines
1.7 KiB
Makefile
Raw Permalink Normal View History

# Run the rulegen system
.PHONY: rulegen
rulegen:
2019-07-10 21:56:11 +00:00
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); \
2021-04-05 19:54:37 +00:00
rm available_tests.txt;
# Build docs locally
.PHONY: docs
docs:
2021-04-05 20:24:58 +00:00
python3 -m sphinx -c docs -a -E -T -W --keep-going docs docs/build
2021-02-13 23:24:49 +00:00
# Apply buildifier
2021-04-05 19:54:37 +00:00
.PHONY: buildifier
2021-02-13 23:24:49 +00:00
buildifier:
2021-02-14 18:11:54 +00:00
bazel run //tools:buildifier
2021-02-13 23:24:49 +00:00
# Run crate_universe to update the rust dependencies
.PHONY: rust_crates_vendor
rust_crates_vendor:
bazel run //rust:crates_vendor -- --repin
2021-02-17 00:24:21 +00:00
# Run yarn to upgrade the js dependencies
.PHONY: yarn_upgrade
yarn_upgrade:
2021-02-17 00:24:21 +00:00
cd js/requirements; \
2021-02-20 13:25:59 +00:00
rm yarn.lock; \
2019-07-10 12:41:59 +00:00
yarn install; \
# Run bundle to upgrade the Ruby dependencies
.PHONY: ruby_bundle_upgrade
2019-07-10 12:41:59 +00:00
ruby_bundle_upgrade:
cd ruby; \
2021-02-20 13:25:59 +00:00
rm Gemfile.lock; \
2019-12-01 21:36:57 +00:00
bundle install --path /tmp/ruby-bundle; \
2019-07-10 12:41:59 +00:00
# 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
2021-09-20 15:58:54 +00:00
bazel run //tools:buildifier
2021-09-16 21:35:08 +00:00
# Run F# package regeneration
.PHONY: fsharp_regenerate_packages
fsharp_regenerate_packages:
./fsharp/nuget/regenerate_packages.sh
2021-09-20 15:58:54 +00:00
bazel run //tools:buildifier
2021-09-16 21:35:08 +00:00
2019-07-10 12:41:59 +00:00
# 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
2019-06-14 16:53:09 +00:00
include example/Makefile.mk
2019-06-16 15:58:51 +00:00
# Pull in auto-generated test workspaces makefile
2019-06-16 15:58:51 +00:00
include test_workspaces/Makefile.mk