-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathMakefile
executable file
·38 lines (31 loc) · 998 Bytes
/
Makefile
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
# List all folders in benchmarks directory
BENCHMARK_FOLDERS := $(wildcard benchmarks/*)
# Extract only folder names
BENCHMARK_NAMES := $(notdir $(BENCHMARK_FOLDERS))
# Define the install target
install:
@echo "Please specify a benchmark to install (e.g., make install mastermind)"
install-%:
@echo "Installing benchmark: $*"
cd benchmarks/$* && ./setup.sh
init-%:
@echo "Setting up benchmark: $*"
python3 .templates/customize.py $*
mkdir agentquest/drivers/$*
mv .templates/$*_driver.py agentquest/drivers/$*/
mv .templates/__init__.py agentquest/drivers/$*/
mkdir benchmarks/$*
touch benchmarks/$*/setup.sh
touch benchmarks/$*/requirements.txt
mv .templates/README.md benchmarks/$*/
mkdir agentquest/data/$*
clean-%:
@echo "Removing benchmark: $*"
rm -rf agentquest/drivers/$*
rm -rf benchmarks/$*
rm -rf agentquest/data/$*
# Define the rule to install benchmarks
installall: $(BENCHMARK_NAMES)
# Rule to install each benchmark folder
$(BENCHMARK_NAMES):
make install-$@