-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathMakefile
executable file
·62 lines (49 loc) · 1.38 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
VERSION = none
MESSAGE = Release version $(VERSION)
DIR = ./test/test/
.PHONY: release proxy-release ci_check
release:
git add .
git commit -m "$(MESSAGE)"
git tag $(VERSION)
git push origin $(VERSION)
make proxy-release
proxy-release:
GOPROXY=proxy.golang.org go list -m vuelto.pp.ua@$(VERSION)
ci_check:
go build -o bin/test/test ./test/test/
go build -o bin/test/backend ./test/backend/
go build -o bin/examples/basic-window ./examples/basic-window/
go build -o bin/examples/shapes ./examples/shapes/
go build -o bin/examples/images ./examples/images/
go build -o bin/examples/two-windows ./examples/two-windows/
test:
go run test/test/test.go
web_nixos:
@env -i \
GOARCH="$(GOARCH)" \
GOPATH="$(GOPATH)" \
GOROOT="$(GOROOT)" \
GOCACHE="$(GOCACHE)" \
USER="$(USER)" \
XDG_CACHE_HOME="$(XDG_CACHE_HOME)" \
HOME="$(HOME)" \
PATH="$(GOPATH)/bin:$(PATH)" \
"$(GOPATH)/bin/wasmserve" "$(DIR)"
format:
go fmt ./pkg/
go fmt ./test/test/
go fmt ./test/backend/
go fmt ./internal/gl/webgl/
go fmt ./internal/gl/opengl/
go fmt ./internal/gl/
go fmt ./internal/windowing/web/
go fmt ./internal/windowing/x11/
go fmt ./internal/windowing/cocoa/
go fmt ./internal/windowing/win32/
go fmt ./internal/windowing/wayland/
go fmt ./internal/windowing/
go fmt ./examples/images/
go fmt ./examples/shapes/
go fmt ./examples/two-windows/
go fmt ./examples/basic-window/