MovieNight/Makefile

29 lines
634 B
Makefile
Raw Normal View History

.PHONY: sync fmt vet
2019-03-16 18:42:17 +01:00
all: fmt vet MovieNight MovieNight.exe static/main.wasm
MovieNight.exe: *.go common/*.go
GOOS=windows GOARCH=amd64 go build -o MovieNight.exe
MovieNight: *.go common/*.go
GOOS=linux GOARCH=386 go build -o MovieNight
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
clean:
-rm MovieNight.exe MovieNight ./static/main.wasm
fmt:
goimports -w .
vet:
2019-03-12 04:15:42 +01:00
go vet ./...
GOOS=js GOARCH=wasm go vet ./...
sync:
scp -i /c/movienight/movienight-deploy.key -r . zorchenhimer@movienight.zorchenhimer.com:/home/zorchenhimer/movienight
run: all
./MovieNight.exe