-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
42 lines (35 loc) · 1.07 KB
/
Makefile
File metadata and controls
42 lines (35 loc) · 1.07 KB
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
35
36
37
38
39
40
41
42
# Makefile for Fantasy Football App
.PHONY: build deploy dry-run clean preview llm
# Build the project for deployment
# Usage: make build WEEK=3
build:
@if [ -z "$(WEEK)" ]; then \
echo "Please specify a week, e.g., make build WEEK=3"; \
exit 1; \
fi
./build.sh build --week $(WEEK)
# Generate an LLM report for a specific week
# Usage: make llm WEEK=3
llm:
@if [ -z "$(WEEK)" ]; then \
echo "Please specify a week, e.g., make llm WEEK=3"; \
exit 1; \
fi
uv run python -m ff.llm_report --week $(WEEK)
# Preview a weekly report
# Usage: make preview WEEK=3
preview:
@if [ -z "$(WEEK)" ]; then \
echo "Please specify a week, e.g., make preview WEEK=3"; \
exit 1; \
fi
./build.sh --week $(WEEK)
# Deploy the built dist/ to the remote server
deploy:
rsync -avz --quiet --delete --chmod=Du=rwx,Dg=rx,Do=rx,Fu=rw,Fgo=r dist/ ls2:/var/www/tbol/ff/
# Dry-run to see what would be deployed without actually doing it
dry-run:
rsync -avz --delete --dry-run --chmod=Du=rwx,Dg=rx,Do=rx,Fu=rw,Fgo=r dist/ ls2:/var/www/tbol/ff/
# Clean up the dist/ directory
clean:
rm -rf dist/