-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
50 lines (42 loc) · 1.26 KB
/
Makefile
File metadata and controls
50 lines (42 loc) · 1.26 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
43
44
45
46
47
48
49
50
.PHONY: local-run install clean test help
# Default Python command
PYTHON := python3
# Install dependencies
install:
pip install -e .
# Run the framework locally
local-run:
$(PYTHON) -m scriptbench.main
# Run with specific task
local-run-task:
$(PYTHON) -m scriptbench.main --task $(TASK)
# Run with output file
local-run-output:
$(PYTHON) -m scriptbench.main --output $(OUTPUT)
# Clean temporary files and logs
clean:
rm -rf logs/
rm -rf __pycache__/
find . -name "*.pyc" -delete
find . -name "*.pyo" -delete
find . -name "__pycache__" -type d -exec rm -rf {} +
# Run tests
test:
$(PYTHON) -m pytest tests/ -v
# Show help
help:
@echo "ScriptBench Makefile"
@echo ""
@echo "Available targets:"
@echo " install - Install the package in development mode"
@echo " local-run - Run the framework with default settings"
@echo " local-run-task TASK=<name> - Run a specific task"
@echo " local-run-output OUTPUT=<file> - Run and save results to file"
@echo " clean - Clean temporary files and logs"
@echo " test - Run the test suite"
@echo " help - Show this help message"
@echo ""
@echo "Examples:"
@echo " make local-run"
@echo " make local-run-task TASK=table_counting"
@echo " make local-run-output OUTPUT=results.json"