mirror of
https://github.com/vinta/awesome-python.git
synced 2026-03-23 22:03:12 +08:00
Rename site_* targets to bare names (install, fetch_stats, build, preview). Replace the static preview target with a watchmedo-driven live-reload loop so file changes trigger automatic rebuilds. Make the output directory creation idempotent (exist_ok=True) and static copy incremental (dirs_exist_ok=True) so repeated builds don't wipe output on each run. Co-Authored-By: Claude <noreply@anthropic.com>
22 lines
489 B
Makefile
22 lines
489 B
Makefile
-include .env
|
|
export
|
|
|
|
install:
|
|
uv sync
|
|
|
|
fetch_stats:
|
|
uv run python website/fetch_github_stars.py
|
|
|
|
build:
|
|
uv run python website/build.py
|
|
|
|
preview: build
|
|
@echo "Check the website on http://localhost:8000"
|
|
uv run watchmedo shell-command \
|
|
--patterns='*.md;*.html;*.css;*.js;*.py' \
|
|
--recursive \
|
|
--wait --drop \
|
|
--command='uv run python website/build.py' \
|
|
README.md website/templates website/static website/data & \
|
|
python -m http.server -b 127.0.0.1 -d website/output/ 8000
|