Skip to content

Commit

Permalink
chore(makefile) new 'make update' target for Cargo workspaces
Browse files Browse the repository at this point in the history
  • Loading branch information
thibaultcha committed Dec 22, 2023
1 parent 6b658da commit d36e773
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,11 @@ reindex:
@util/reindex.sh "t/**/**/*.t"
@util/reindex.sh "t/**/**/**/*.t"

.PHONY: update
update:
@cargo update --manifest-path lib/Cargo.toml
@cargo update --manifest-path t/lib/Cargo.toml

.PHONY: todo
todo:
@/bin/grep -rIFn -- 'TODO' src/ t/
Expand All @@ -88,8 +93,7 @@ act: act-build
@act --reuse --pull=false

.PHONY: coverage
coverage:
make clean
coverage: clean
NGX_BUILD_GCOV=1 make
TEST_NGINX_RANDOMIZE=1 make test
rm -rf work/coverage_data
Expand Down
1 change: 1 addition & 0 deletions docs/DEVELOPER.md
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@ release artifacts).
| `test-build` | Run the build options test suite
| `lint` | Lint the sources and test cases
| `reindex` | Automatically format the `.t` test files
| `update` | Run `cargo update` in all workspaces
| `todo` | Search the project for "TODOs" (source + tests)
| `act` | Build and run the CI environment
| `clean` | Clean the latest build
Expand Down

0 comments on commit d36e773

Please sign in to comment.