-
Notifications
You must be signed in to change notification settings - Fork 29
/
Makefile
41 lines (31 loc) · 867 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
39
40
41
RELEASE = 240929a
VERSION = $(shell grep '"version"' package.json | cut -d '"' -f 4)
EXE = dist/LizGoban\ $(VERSION).exe
PACKAGE = tmpLizGoban-$(VERSION)_win_$(RELEASE)
ZIP = tmp$(PACKAGE).zip
local:
(cd build_with; make)
extra:
(cd build_with; make all)
$(EXE):
npm i
npm run build_win
# force rebuilding
win: extra
npm i
npm run build_win
lin: extra
npm i
npm run build_lin
######################################
# zip
$(PACKAGE): extra $(EXE)
mkdir $(PACKAGE)
cp $(EXE) build_with/config.json $(PACKAGE)
cp -r build_with/bin/win/katago $(PACKAGE)
cp build_with/bin/common/katanetwork.gz $(PACKAGE)/katago/default_model.bin.gz
cp build_with/bin/common/kata_humanmodel.gz $(PACKAGE)/katago/human_model.bin.gz
cp -r build_with/extra/* $(PACKAGE)
$(ZIP): $(PACKAGE)
cd $(PACKAGE) && zip -r $(PACKAGE).zip . && mv $(PACKAGE).zip ..
zip: $(ZIP)