Removed: if windows
It isn't mandatory to be suffixed by ".exe" to be runnable into an windows.
This commit is contained in:
parent
aaad03f44d
commit
7cd9945e8a
9
Makefile
9
Makefile
|
@ -10,14 +10,9 @@
|
||||||
|
|
||||||
TAGS=
|
TAGS=
|
||||||
|
|
||||||
# Windows needs the .exe extension.
|
|
||||||
.if ${TARGET} == "windows"
|
|
||||||
EXT=.exe
|
|
||||||
.endif
|
|
||||||
|
|
||||||
.PHONY: fmt vet get clean dev setdev test ServerMovieNight
|
.PHONY: fmt vet get clean dev setdev test ServerMovieNight
|
||||||
|
|
||||||
all: fmt vet test MovieNight$(EXT) static/main.wasm settings.json
|
all: fmt vet test MovieNight static/main.wasm settings.json
|
||||||
|
|
||||||
# Build the server deployment
|
# Build the server deployment
|
||||||
server: ServerMovieNight static/main.wasm
|
server: ServerMovieNight static/main.wasm
|
||||||
|
@ -41,7 +36,7 @@ static/main.wasm: static/js/wasm_exec.js wasm/*.go common/*.go
|
||||||
GOOS=js GOARCH=wasm go$(GO_VERSION) build -o $@ $(TAGS) wasm/*.go
|
GOOS=js GOARCH=wasm go$(GO_VERSION) build -o $@ $(TAGS) wasm/*.go
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
-rm MovieNight$(EXT) ./static/main.wasm ./static/js/wasm_exec.js
|
-rm MovieNight ./static/main.wasm ./static/js/wasm_exec.js
|
||||||
|
|
||||||
fmt:
|
fmt:
|
||||||
gofmt -w .
|
gofmt -w .
|
||||||
|
|
Loading…
Reference in New Issue