MovieNight/Makefile
joeyak 86207ecd48 Added spoilers in chat
If a user clicks the spoiler, it will change color and the background will revert.
closes #62
2019-03-24 23:43:30 -04:00

37 lines
747 B
Makefile

TAGS=
.PHONY: fmt vet get clean dev setdev test
all: fmt vet test MovieNight MovieNight.exe static/main.wasm
setdev:
$(eval export TAGS=-tags "dev")
dev: setdev all
MovieNight.exe: *.go common/*.go
GOOS=windows GOARCH=amd64 go build -o MovieNight.exe $(TAGS)
MovieNight: *.go common/*.go
GOOS=linux GOARCH=386 go build -o MovieNight $(TAGS)
static/main.wasm: wasm/*.go common/*.go
GOOS=js GOARCH=wasm go build -o ./static/main.wasm $(TAGS) wasm/*.go
clean:
-rm MovieNight.exe MovieNight ./static/main.wasm
fmt:
goimports -w .
get:
go get -u -v ./...
GOOS=js GOARCH=wasm go get -u -v ./...
go get golang.org/x/tools/cmd/goimports
vet:
go vet $(TAGS) ./...
GOOS=js GOARCH=wasm go vet $(TAGS) ./...
test:
go test $(TAGS) ./...