Removed: if windows

It isn't mandatory to be suffixed by ".exe" to be runnable into an
windows.
This commit is contained in:
Bertrand Moreau 2020-08-21 12:01:54 +02:00
parent 3b9ed93a1d
commit 070a753081
1 changed files with 7 additions and 2 deletions

View File

@ -10,9 +10,14 @@
TAGS=
# Windows needs the .exe extension.
#.if ${TARGET} == "windows"
#EXT=.exe
#.endif
.PHONY: fmt vet get clean dev setdev test ServerMovieNight
all: fmt vet test MovieNight static/main.wasm settings.json
all: fmt vet test MovieNight$(EXT) static/main.wasm settings.json
# Build the server deployment
server: ServerMovieNight static/main.wasm
@ -36,7 +41,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
clean:
-rm MovieNight ./static/main.wasm ./static/js/wasm_exec.js
-rm MovieNight$(EXT) ./static/main.wasm ./static/js/wasm_exec.js
fmt:
gofmt -w .