-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
38 lines (29 loc) · 971 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
HR_EDL_DIR =hr_edl
EXE_DIR :=$(HR_EDL_DIR)/build.optimized/bin
SIF :=
PREFIX :=.
ALG_GROUPS :=efr
GAMES :=sheriff tiny_bridge leduc tiny_hanabi \
goofspiel goofspiel_ascending random_goofspiel goofspiel_3p goofspiel_ascending_3p
DET_MODES :=fixed sim
DET_SSV_FILES :=$(foreach alg_group,$(ALG_GROUPS),\
$(foreach game,$(GAMES),\
$(foreach mode,$(DET_MODES),\
data/$(alg_group).$(game).null.$(mode).gen.ssv)))
SSV_FILES :=$(DET_SSV_FILES)
default: results/efr_data.npy results/cor_gap_data.npy
@true
data:
mkdir $@
results:
mkdir $@
data/%.gen.ssv: | data
python3 $(PREFIX)/bin/run_experiment.py --exe_dir $(EXE_DIR) -a $* --sif "$(SIF)" > $@
runs_remaining.gen.sh: bin/list_runs_remaining.sh Makefile
$< > $@
results/efr_data.npy: $(SSV_FILES) | results
python3 $(PREFIX)/bin/save_data.py -x efr -o $@
results/cor_gap_data.npy: $(wildcard data/cor_gap.*.dat) | results
python3 $(PREFIX)/bin/save_data.py -x cor_gap -o $@
print-%:
@echo $* = $($*)