-
Notifications
You must be signed in to change notification settings - Fork 569
/
Makefile
45 lines (35 loc) · 1.01 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
all: tile38-server tile38-cli tile38-benchmark tile38-luamemtest
.PHONY: tile38-server
tile38-server:
@./scripts/build.sh tile38-server
.PHONY: tile38-cli
tile38-cli:
@./scripts/build.sh tile38-cli
.PHONY: tile38-benchmark
tile38-benchmark:
@./scripts/build.sh tile38-benchmark
.PHONY: tile38-luamemtest
tile38-luamemtest:
@./scripts/build.sh tile38-luamemtest
test: all
@./scripts/test.sh
package:
@rm -rf packages/
@scripts/package.sh Windows windows amd64
@scripts/package.sh Mac darwin amd64
@scripts/package.sh Linux linux amd64
@scripts/package.sh FreeBSD freebsd amd64
@scripts/package.sh ARM linux arm
@scripts/package.sh ARM64 linux arm64
clean:
rm -rf tile38-server tile38-cli tile38-benchmark tile38-luamemtest
distclean: clean
rm -rf packages/
install: all
cp tile38-server /usr/local/bin
cp tile38-cli /usr/local/bin
cp tile38-benchmark /usr/local/bin
uninstall:
rm -f /usr/local/bin/tile38-server
rm -f /usr/local/bin/tile38-cli
rm -f /usr/local/bin/tile38-benchmark