forked from scottjones03/public-material-2025
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
46 lines (37 loc) · 889 Bytes
/
Copy pathMakefile
File metadata and controls
46 lines (37 loc) · 889 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
35
36
37
38
39
40
41
42
43
44
45
46
PYTHON ?= python3.11
VENV := venv
REQ := requirements.txt
CONFIG := configs/config.yml
# venv layout differs between Windows (Scripts/) and POSIX (bin/)
ifeq ($(OS),Windows_NT)
VENV_BIN := $(VENV)/Scripts
else
VENV_BIN := $(VENV)/bin
endif
.PHONY: all
all: setup run
.PHONY: setup
setup:
$(PYTHON) -m venv $(VENV)
$(VENV_BIN)/pip install -r $(REQ)
.PHONY: run
run:
$(VENV_BIN)/python main.py --config $(CONFIG)
.PHONY: test
test:
$(VENV_BIN)/pytest tests/
.PHONY: run-analysis
run-analysis:
$(VENV_BIN)/python color_code_experiments/run_analysis.py
.PHONY: run-comparison
run-comparison:
$(VENV_BIN)/python run_comparison.py
.PHONY: clean
clean:
rm -f process_log*.txt
rm -rf logs/ .pytest_cache/ .hypothesis/
find . -type d -name __pycache__ -exec rm -rf {} +
find . -type d -name .ipynb_checkpoints -exec rm -rf {} +
.PHONY: reset
reset: clean
rm -rf $(VENV)