Files
tikker/Makefile
T
retoor 6d3f5b0205 fix: add matplotlib dependency and print duration with early exit in plot script
- Add matplotlib to pip install in Makefile to resolve missing import
- Insert duration print and exit() call before unused json/logs processing block in plot.py
2025-03-20 02:21:22 +00:00

38 lines
637 B
Makefile

all: tikker run
tikker: tikker.c sormc.h
gcc tikker.c -Ofast -Wall -Werror -Wextra -o tikker -lsqlite3
run:
./tikker
PYTHON="./.venv/bin/python"
ensure_env:
-@python3 -m venv .venv
$(PYTHON) -m pip install dataset matplotlib
merge:
$(PYTHON) merge.py
plot: ensure_env
time $(PYTHON) plot.py
time $(PYTHON) merge.py
graph: graph.c
gcc -o graph graph.c -I/usr/include/SDL2 -L/usr/lib -lSDL2
./graph
graph2: graph2.c
gcc -o graph2 graph2.c -I/usr/include/SDL2 -L/usr/lib -lSDL2
./graph2
index:
$(PYTHON) tags.py --index
popular:
$(PYTHON) tags.py --popular
process:
PYTHONPATH=/home/retoor/bin $(PYTHON) process.py