2019-03-17 03:24:35 +01:00
|
|
|
.PHONY: fmt vet get clean
|
2019-03-10 16:42:12 +01:00
|
|
|
|
2019-03-16 18:42:17 +01:00
|
|
|
all: fmt vet MovieNight MovieNight.exe static/main.wasm
|
2019-03-10 16:42:12 +01:00
|
|
|
|
2019-03-13 06:09:24 +01:00
|
|
|
MovieNight.exe: *.go common/*.go
|
2019-03-10 16:42:12 +01:00
|
|
|
GOOS=windows GOARCH=amd64 go build -o MovieNight.exe
|
|
|
|
|
2019-03-13 06:09:24 +01:00
|
|
|
MovieNight: *.go common/*.go
|
2019-03-10 16:42:12 +01:00
|
|
|
GOOS=linux GOARCH=386 go build -o MovieNight
|
|
|
|
|
2019-03-13 06:09:24 +01:00
|
|
|
static/main.wasm: wasm/*.go common/*.go
|
2019-03-12 04:15:42 +01:00
|
|
|
GOOS=js GOARCH=wasm go build -o ./static/main.wasm wasm/*.go
|
|
|
|
|
2019-03-10 16:42:12 +01:00
|
|
|
clean:
|
2019-03-12 23:15:45 +01:00
|
|
|
-rm MovieNight.exe MovieNight ./static/main.wasm
|
2019-03-10 16:42:12 +01:00
|
|
|
|
|
|
|
fmt:
|
2019-03-13 05:25:03 +01:00
|
|
|
goimports -w .
|
2019-03-10 16:42:12 +01:00
|
|
|
|
2019-03-17 03:24:35 +01:00
|
|
|
get:
|
|
|
|
go get -u -v ./...
|
|
|
|
GOOS=js GOARCH=wasm go get -u -v ./...
|
|
|
|
go get golang.org/x/tools/cmd/goimports
|
|
|
|
|
2019-03-10 16:42:12 +01:00
|
|
|
vet:
|
2019-03-12 04:15:42 +01:00
|
|
|
go vet ./...
|
|
|
|
GOOS=js GOARCH=wasm go vet ./...
|