Skip to content

Commit 8119d6b

Browse files
build: more convinient interface for handle of all stuff. just make all
1 parent 6655597 commit 8119d6b

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

Makefile

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,32 @@
1+
.PHONY: install-uv up down
2+
3+
install-uv:
4+
@echo "Installing Astral UV..."
5+
@if command -v curl >/dev/null 2>&1; then \
6+
curl -LsSf https://astral.sh/uv/install.sh | sh; \
7+
elif command -v wget >/dev/null 2>&1; then \
8+
wget -qO- https://astral.sh/uv/install.sh | sh; \
9+
else \
10+
echo "Error: Neither curl nor wget is available. Please install one of them."; \
11+
exit 1; \
12+
fi
13+
@echo "Astral UV installed successfully."
14+
15+
check-uv:
16+
@uv --version || (echo "Astral UV is not installed or not in PATH" && exit 1)
17+
18+
sync:
19+
@uv sync
20+
21+
editable:
22+
@uv pip install -e .
23+
124
up:
225
docker compose up -d --build
326

427
down:
528
docker compose down --remove-orphans --rmi local --volumes
29+
30+
all: install-uv check-uv sync editable up
31+
32+
.DEFAULT_GOAL := up

0 commit comments

Comments
 (0)