-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
65 lines (53 loc) · 1.65 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
reset-all:
(cd gamepad && make reset)
(cd emulator && make reset)
clean-all: clean
(cd gamepad && make clean)
(cd emulator && make clean)
install-all: install
(cd gamepad && make install)
(cd emulator && make install)
build-all: build
(cd gamepad && make build)
(cd emulator && make build)
clean:
rm -rf matrix-package
rm -f matrix.zip
rm -f *.log
rm -rf build
rm -f *.xml
rm -rf target
install:
go mod tidy
build:
go build -o build/matrix-local .
build-arm:
docker run -it -e TARGETS="linux/arm-7" -e OUT=matrix -e EXT_GOPATH=/gopath \
-v $(PWD):/gopath/src/github.com/richardlt/matrix \
-v $(PWD)/build:/build richardleterrier/xgo:v1.13.1 github.com/richardlt/matrix
build-windows:
docker run -it -e TARGETS="windows/amd64" -e OUT=matrix -e EXT_GOPATH=/gopath \
-v $(PWD):/gopath/src/github.com/richardlt/matrix \
-v $(PWD)/build:/build richardleterrier/xgo:v1.13.1 github.com/richardlt/matrix
package:
rm -rf matrix-package
mkdir -p matrix-package/gamepad/public
mkdir -p matrix-package/emulator/public
cp build/matrix-* matrix-package/
cp -R themes matrix-package/
cp -R fonts matrix-package/
cp -R images matrix-package/
cp -R animations matrix-package/
cp -R gamepad/public/. matrix-package/gamepad/public/
cp -R emulator/public/. matrix-package/emulator/public/
zip -r matrix.zip matrix-package
debpacker:
rm -rf target
docker run -it \
-v $(PWD):/tmp/workspace \
-w /tmp/workspace richardleterrier/debpacker:v0.0.2 debpacker make
test:
go test -race github.com/richardlt/matrix/... -v | tee report.out
test-with-report: test
go install github.com/jstemmer/go-junit-report@latest
cat report.out | go-junit-report > report.xml