Skip to content

Commit

Permalink
Add Makefile commands
Browse files Browse the repository at this point in the history
  • Loading branch information
tyranron committed Oct 27, 2023
1 parent 81c61f6 commit d652645
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .codespellrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[codespell]
ignore-words-list = crate
16 changes: 14 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ eq = $(if $(or $(1),$(2)),$(and $(findstring $(1),$(2)),\
book: book.build


codespell: book.codespell


fmt: cargo.fmt


Expand Down Expand Up @@ -137,6 +140,15 @@ book.build:
mdbook build book/ $(if $(call eq,$(out),),,-d $(out))


# Spellcheck Book.
#
# Usage:
# make book.codespell [fix=(no|yes)]

book.codespell:
codespell book/ $(if $(call eq,$(fix),yes),--write-changes,)


# Serve Book on some port.
#
# Usage:
Expand Down Expand Up @@ -180,8 +192,8 @@ graphql-playground:
# .PHONY section #
##################

.PHONY: book fmt lint release test \
book.build book.serve \
.PHONY: book codespell fmt lint release test \
book.build book.codespell book.serve \
cargo.fmt cargo.lint cargo.release cargo.test \
graphiql graphql-playground \
test.book test.cargo

0 comments on commit d652645

Please sign in to comment.