-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathMakefile
More file actions
34 lines (27 loc) · 870 Bytes
/
Makefile
File metadata and controls
34 lines (27 loc) · 870 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
30
31
32
33
34
# Simple Makefile for SWE-bench website
.PHONY: help install build serve clean
# Default target: show help
default: help
help:
@echo "Available commands:"
@echo " make install - Install Python dependencies using uv"
@echo " make build - Generate all HTML pages from templates"
@echo " make serve - Start a local development server (http://localhost:8000)"
@echo " make clean - Remove generated HTML files"
install:
@echo "Installing dependencies with uv..."
uv sync
build:
@echo "Building HTML pages..."
uv run python build.py
@echo "Build complete."
serve:
make build
@echo "Starting local server at http://localhost:9000 ... Press Ctrl+C to stop."
cd dist && uv run python -m http.server 9000
clean:
@echo "Cleaning generated files..."
rm -rf dist
@echo "Removing virtual environment..."
rm -rf .venv
@echo "Clean complete."