This repository has been archived by the owner on Jul 16, 2020. It is now read-only.
/
makefile
61 lines (52 loc) · 1.6 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
SEED = $(shell date +%s)
TEST_SIZE = 320
.PHONY: build
build:
cd single; go build -o="single"
mv single/single build/single
mv out.png last.png
./build/single -size=$(TEST_SIZE) -longName=false -out=out
.PHONY: buildD
buildD:
cd single; go build -o="single"
mv single/single build/single
mv out.png last.png
./build/single -size=250 -longName=false -out=out -debug=true
.PHONY: buildR
buildR:
cd random; go build -o="random"
mv random/random build/random
./build/random -n=1
.PHONY: buildAll
buildAll:
cd single; go build -o="single"
mv single/single build/single
cd random; go build -o="random"
mv random/random build/random
cd enhance; go build -o="enhance"
mv enhance/enhance build/enhance
cd enhance-convert; go build -o="enhance-convert"
mv enhance-convert/enhance-convert build/enhance-convert
.PHONY: keep
keep:
cp out.png keep.png
SETNAME = Nets
SETDIR = $(SETNAME)-$(shell date +%s)
SIZE = 2400
SET_A = -c2r=96 -c2g=131 -c2b=186
SET_B = -c2r=255 -c2g=0 -c2b=0
SET_C = -c2r=0 -c2g=34 -c2b=0
SET_D = -c2r=242 -c2g=170 -c2b=255
.PHONY: set
set:
mkdir $(SETDIR)
cd $(SETDIR); ../build/single -size=$(SIZE) -longName=true -out=$(SETNAME) $(SET_A) -seed=$(SEED)
cd $(SETDIR); ../build/single -size=$(SIZE) -longName=true -out=$(SETNAME) $(SET_B) -seed=$(SEED)
cd $(SETDIR); ../build/single -size=$(SIZE) -longName=true -out=$(SETNAME) $(SET_C) -seed=$(SEED)
cd $(SETDIR); ../build/single -size=$(SIZE) -longName=true -out=$(SETNAME) $(SET_D) -seed=$(SEED)
COUNT = 150
BATCHDIR = rand-$(COUNT)-$(SEED)
.PHONY: random
random:
mkdir $(BATCHDIR)
cd $(BATCHDIR); ../build/random -n=$(COUNT) -seed=$(SEED)