Skip to content

Commit 8039107

Browse files
authored
fix: better make help do not use uv (#34)
Signed-off-by: yihong0618 <[email protected]>
1 parent e0aaa35 commit 8039107

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Makefile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ docs: ## Build and serve the documentation
5353

5454
.PHONY: help
5555
help:
56-
@uv run python -c "import re; \
57-
[[print(f'\033[36m{m[0]:<20}\033[0m {m[1]}') for m in re.findall(r'^([a-zA-Z_-]+):.*?## (.*)$$', open(makefile).read(), re.M)] for makefile in ('$(MAKEFILE_LIST)').strip().split()]"
56+
@awk -F '## ' '/^[A-Za-z_-]+:.*##/ { target = $$1; sub(/:.*/, "", target); printf "\033[36m%-20s\033[0m %s\n", target, $$2 }' $(MAKEFILE_LIST)
5857

5958
.DEFAULT_GOAL := help

0 commit comments

Comments
 (0)