-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
54 lines (44 loc) · 1.41 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
reset-all:
(cd gamepad && make reset)
(cd emulator && make reset)
clean-all: clean
(cd gamepad && make clean)
(cd emulator && make clean)
install-all:
(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
rm -f matrix.zip
rm -f *.log
rm -rf build
build:
go build -o matrix .
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 karalabe/xgo-1.11 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 karalabe/xgo-1.11 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/build/default/. matrix-package/gamepad/public/
cp -R emulator/client/public/. matrix-package/emulator/public/
zip -r matrix.zip matrix-package
test:
go test -race github.com/richardlt/matrix/... -v
test-with-report:
go test -race github.com/richardlt/matrix/... -v | go-junit-report > report.xml