generated from kevin3314/lightning-hydra-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
63 lines (47 loc) · 1.63 KB
/
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
DATASET :=
DO_CROSS_VALIDATION :=
RES_ROOT=$(shell pwd)/outputs
ifeq ($(DO_CROSS_VALIDATION),1)
SUFFIX=cv
DO_CROSS_VALIDATION_FLAG=-c
else
SUFFIX=wo_cv
DO_CROSS_VALIDATION_FLAG=
endif
.PHONY: all
all:
$(MAKE) text
$(MAKE) text_graph
$(MAKE) text_num
$(MAKE) text_graph_num
$(MAKE) graph
$(MAKE) graph_num
$(MAKE) num
.PHONY: text
text: $(RES_ROOT)/.text.$(DATASET).$(SUFFIX).done
$(RES_ROOT)/.text.$(DATASET).$(SUFFIX).done:
./run.sh -t $(DO_CROSS_VALIDATION_FLAG) -d $(DATASET) && touch $@
.PHONY: text_graph
text_graph: $(RES_ROOT)/.text_graph.$(DATASET).$(SUFFIX).done
$(RES_ROOT)/.text_graph.$(DATASET).$(SUFFIX).done:
./run.sh -tg $(DO_CROSS_VALIDATION_FLAG) -d $(DATASET) && touch $@
.PHONY: text_num
text_num: $(RES_ROOT)/.text_num.$(DATASET).$(SUFFIX).done
$(RES_ROOT)/.text_num.$(DATASET).$(SUFFIX).done:
./run.sh -tn $(DO_CROSS_VALIDATION_FLAG) -d $(DATASET) && touch $@
.PHONY: text_graph_num
text_graph_num: $(RES_ROOT)/.text_graph_num.$(DATASET).$(SUFFIX).done
$(RES_ROOT)/.text_graph_num.$(DATASET).$(SUFFIX).done:
./run.sh -tgn $(DO_CROSS_VALIDATION_FLAG) -d $(DATASET) && touch $@
.PHONY: graph
graph: $(RES_ROOT)/.graph.$(DATASET).$(SUFFIX).done
$(RES_ROOT)/.graph.$(DATASET).$(SUFFIX).done:
./run.sh -g $(DO_CROSS_VALIDATION_FLAG) -d $(DATASET) && touch $@
.PHONY: graph_num
graph_num: $(RES_ROOT)/.graph_num.$(DATASET).$(SUFFIX).done
$(RES_ROOT)/.graph_num.$(DATASET).$(SUFFIX).done:
./run.sh -gn $(DO_CROSS_VALIDATION_FLAG) -d $(DATASET) && touch $@
.PHONY: num
num: $(RES_ROOT)/.num.$(DATASET).$(SUFFIX).done
$(RES_ROOT)/.num.$(DATASET).$(SUFFIX).done:
./run.sh -n $(DO_CROSS_VALIDATION_FLAG) -d $(DATASET) && touch $@