2019-07-07 17:32:52 +00:00
|
|
|
# Run the rulegen system
|
2021-01-20 03:52:37 +00:00
|
|
|
.PHONY: rulegen
|
2019-06-04 02:52:58 +00:00
|
|
|
rulegen:
|
2019-07-10 21:56:11 +00:00
|
|
|
bazel query '//example/routeguide/... - attr(tags, manual, //example/routeguide/...)' > available_tests.txt; \
|
2019-07-24 21:24:10 +00:00
|
|
|
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
|
2019-05-04 03:50:09 +00:00
|
|
|
|
2019-07-07 17:42:08 +00:00
|
|
|
|
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
|
|
|
|
|
|
|
|
2023-01-25 22:17:05 +00:00
|
|
|
# Run crate_universe to update the rust dependencies
|
|
|
|
.PHONY: rust_crates_vendor
|
|
|
|
rust_crates_vendor:
|
|
|
|
bazel run //rust:crates_vendor -- --repin
|
2019-07-07 17:32:52 +00:00
|
|
|
|
2019-07-07 17:42:08 +00:00
|
|
|
|
2021-02-17 00:24:21 +00:00
|
|
|
# Run yarn to upgrade the js dependencies
|
2021-01-20 03:52:37 +00:00
|
|
|
.PHONY: yarn_upgrade
|
2019-07-07 17:42:08 +00:00
|
|
|
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
|
2021-01-20 03:52:37 +00:00
|
|
|
.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
|
|
|
|
|
|
|
|
2020-10-04 16:21:52 +00:00
|
|
|
# Run pip-compile to upgrade python dependencies
|
2021-01-20 03:52:37 +00:00
|
|
|
.PHONY: pip_compile
|
2020-10-04 16:21:52 +00:00
|
|
|
pip_compile:
|
2022-11-22 21:57:55 +00:00
|
|
|
echo '' > python/requirements.txt
|
|
|
|
bazel run //python:requirements.update
|
2020-10-04 16:21:52 +00:00
|
|
|
|
|
|
|
|
2020-10-11 13:31:45 +00:00
|
|
|
# Run C# package regeneration
|
2021-01-20 03:52:37 +00:00
|
|
|
.PHONY: csharp_regenerate_packages
|
2020-10-11 13:31:45 +00:00
|
|
|
csharp_regenerate_packages:
|
|
|
|
./csharp/nuget/regenerate_packages.sh
|
2021-09-20 15:58:54 +00:00
|
|
|
bazel run //tools:buildifier
|
2020-10-11 13:31:45 +00:00
|
|
|
|
|
|
|
|
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
|
2021-01-20 03:52:37 +00:00
|
|
|
.PHONY: all_updates
|
2023-01-25 22:17:05 +00:00
|
|
|
all_updates: rust_crates_vendor yarn_upgrade ruby_bundle_upgrade pip_compile csharp_regenerate_packages fsharp_regenerate_packages
|
2019-07-07 17:42:08 +00:00
|
|
|
|
|
|
|
|
2019-07-07 17:32:52 +00:00
|
|
|
# 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
|
|
|
|
2019-07-07 17:32:52 +00:00
|
|
|
# Pull in auto-generated test workspaces makefile
|
2019-06-16 15:58:51 +00:00
|
|
|
include test_workspaces/Makefile.mk
|