Skip to content

Commit

Permalink
fix: handle PATH correctly in Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
sripwoud committed Jul 19, 2024
1 parent d1ea678 commit 8ea3a79
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ MAKEFLAGS += --no-print-directory
DEV_BIN_DIR := .cargo/bin
CYAN := \033[36m
RESET := \033[0m
export PATH := $(DEV_BIN_DIR):$(PATH)
PATH := $(DEV_BIN_DIR):$(PATH)

.PHONY: help build build.docs fix fmt lint setup test

Expand All @@ -20,10 +20,10 @@ build.docs: ## build the documentation
@cargo doc --no-deps --all-features

check: ## check that all files match formatting rules
@.cargo/bin/dprint check
@PATH=$(PATH) dprint check

commit: ## make conventional commit
@.cargo/bin/convco commit
@PATH=$(PATH) convco commit

docs: ## build & open the documentation in the browser
@cargo doc --no-deps --open --all-features
Expand All @@ -32,7 +32,7 @@ fix: ## apply lint suggestions
@cargo clippy --all-targets --all-features --workspace --fix

fmt: ## format all files
@.cargo/bin/dprint fmt
@PATH=$(PATH) dprint fmt

lint: ## lint code
@cargo clippy --all-targets --all-features --workspace
Expand Down

0 comments on commit 8ea3a79

Please sign in to comment.