-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakefile
More file actions
57 lines (43 loc) · 1.42 KB
/
makefile
File metadata and controls
57 lines (43 loc) · 1.42 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
51
52
53
54
55
56
57
dylint:
push:
@./scripts/misc/list_instances.sh instances.csv
@./scripts/misc/push.sh ./instances.csv
pull:
@./scripts/misc/list_instances.sh ./instances.csv
@./scripts/misc/pull.sh ./instances.csv
extract-stage1:
@./scripts/stage1/extract.sh ${DATASET} ./pulled
extract-stage2:
@./scripts/stage2/extract.sh ${DATASET} ./pulled
extract-stage3-uninit:
@./scripts/stage3/extract.sh ${DATASET}/stage3/uninit ./pulled
extract-stage3-zeroed:
@./scripts/stage3/extract.sh ${DATASET}/stage3/zeroed ./pulled
summarize:
@Rscript ./scripts/summarize.r
validate: ./build
@Rscript ./scripts/validate.r
build: ./build/stage1 ./build/stage2 ./build/stage3 summarize
./build/stage1:
@echo "Starting Stage 1..."
@rm -rf ./build/stage1
@mkdir -p ./build/stage1
@(python3 ./scripts/stage1/compile.py ${DATASET}/stage1 ./build/stage1)
@Rscript ./scripts/stage1/summarize.r
@echo "Finished Stage 1"
./build/stage2:
@echo "Starting Stage 2..."
@python3 ./scripts/stage2/compile.py ${DATASET}/stage2/logs ./build/stage2/
@Rscript ./scripts/stage2/summarize.r
@echo "Finished Stage 2"
./build/stage3:
@echo "Starting Stage 3..."
@python3 ./scripts/stage3/compile.py ${DATASET}/stage3/zeroed ./build/stage3/zeroed
@python3 ./scripts/stage3/compile.py ${DATASET}/stage3/uninit ./build/stage3/uninit
@Rscript ./scripts/stage3/summarize.r
@echo "Finished Stage 3"
clean:
@rm -rf ./build
.PHONY: default
default: build
.DEFAULT_GOAL := build