-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
91 lines (65 loc) · 2.92 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
VERSION := $(shell git describe --tags)
LD_FLAGS := -ldflags="-X 'main.Version=$(VERSION)'"
SRC := .
BIN := build/fpvc-lady
clean:
@rm -rf build
@mkdir -p build
build-front:
cd gui && npm install && npm run build
build-darwin-amd64:
GOOS=darwin GOARCH=amd64 go build $(LD_FLAGS) -o build/fpvc-lady-darwin-amd64-$(VERSION) $(SRC)
build-darwin-arm64:
GOOS=darwin GOARCH=arm64 go build $(LD_FLAGS) -o build/fpvc-lady-darwin-arm64-$(VERSION) $(SRC)
build-windows-386:
GOOS=windows GOARCH=386 go build $(LD_FLAGS) -o build/fpvc-lady-windows-386-$(VERSION).exe $(SRC)
build-windows-amd64:
GOOS=windows GOARCH=amd64 go build $(LD_FLAGS) -o build/fpvc-lady-windows-amd64-$(VERSION).exe $(SRC)
build-linux-386:
GOOS=linux GOARCH=386 go build $(LD_FLAGS) -o build/fpvc-lady-linux-386-$(VERSION) $(SRC)
build-linux-amd64:
GOOS=linux GOARCH=amd64 go build $(LD_FLAGS) -o build/fpvc-lady-linux-amd64-$(VERSION) $(SRC)
build-linux-arm:
GOOS=linux GOARCH=arm go build $(LD_FLAGS) -o build/fpvc-lady-linux-arm-$(VERSION) $(SRC)
build-linux-arm64:
GOOS=linux GOARCH=arm64 go build $(LD_FLAGS) -o build/fpvc-lady-linux-arm64-$(VERSION) $(SRC)
build: clean build-front build-darwin-amd64 build-darwin-arm64 build-windows-386 build-windows-amd64 build-linux-386 build-linux-amd64 build-linux-arm build-linux-arm64
run:
go run $(SRC)
# Minimal command to start a demo, uses system (win & mac) for tts
demo:
go run $(SRC) --source demo
# Very chatty
demo-heavy-speak:
go run $(SRC) --source demo --speak-lives --speak-cheers
# Use espeak offline tts (available on Linux)
demo-espeak:
go run $(SRC) --source demo --speak espeak --speak-lives --speak-cheers
# Use google online tts
demo-google:
go run $(SRC) --source demo --speak google --speak-lives --speak-cheers
demo-google-sv:
go run $(SRC) --source demo --speak google --locale sv --speak-lives --speak-cheers
# Mac voices
demo-mac-de:
go run $(SRC) --source demo --speak 'say -v anna' --locale de --speak-lives --speak-cheers
demo-mac-en:
go run $(SRC) --source demo --speak 'say -v stephanie' --locale en --speak-lives --speak-cheers
demo-mac-pl:
go run $(SRC) --source demo --speak 'say -v zosia' --locale pl --speak-lives --speak-cheers
demo-mac-ru:
go run $(SRC) --source demo --speak 'say -v milena' --locale ru --speak-lives --speak-cheers
demo-mac-sv:
go run $(SRC) --source demo --speak 'say -v alva' --locale sv --speak-lives --speak-cheers
# Use a custom score
# Hitting A1-C9 adds 3 points, D1-D9 adds 5 points, F1-F9 adds 1 point
# Damage from anyone subsctracts 1 point
demo-score-hit-damage:
go run $(SRC) --source demo --score-hit A1-C9:3,D1-D9:5,F1-F9:1 --score-damage -1
# Press Space after all 5 players registered to start the countdown
# Wait until the battle automatically ends after 2 minutes
demo-countdown:
go run $(SRC) --source demo --auto-start=false --duration-countdown 10 --duration-battle 2
# Replay a log file
replay:
go run $(SRC) --source log --log-file fpvc-lady.log