-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
29 lines (25 loc) · 778 Bytes
/
Makefile
File metadata and controls
29 lines (25 loc) · 778 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
.DEFAULT_GOAL := help
.PHONY: help
help: ## Show help message
@echo "Available targets:"
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-20s\033[0m %s\n", $$1, $$2}'
.PHONY: docs
docs: ## Generate documentation
tinydocs-cli \
-D tinydocs \
--markers docs/tiny.markers.json \
-o docs \
--name tinydocs \
--ignore .gitignore,.tinyignore
.PHONY: build
build: ## Build the package
python -m build
.PHONY: install
install: build ## Install the package
@latest=$$(ls dist/*.whl 2>/dev/null | sort -V | tail -n 1); \
if [ -z "$$latest" ]; then \
echo "Error: No wheel file found in dist/"; \
exit 1; \
fi; \
echo "Installing: $$latest"; \
pip install "$$latest" --break-system-packages --force-reinstall