mirror of
https://github.com/mgerb/ServerStatus
synced 2026-01-09 18:52:50 +00:00
added embedded messages resolves #9
This commit is contained in:
11
makefile
11
makefile
@@ -1,14 +1,16 @@
|
||||
VERSION := $(shell git describe --tags)
|
||||
|
||||
run:
|
||||
go run ./src/main.go
|
||||
|
||||
linux:
|
||||
go build -o ./dist/ServerStatus-linux ./main.go
|
||||
go build -o ./dist/ServerStatus-linux -ldflags="-X main.version=${VERSION}" ./main.go
|
||||
|
||||
mac:
|
||||
GOOS=darwin GOARCH=amd64 go build -o ./dist/ServerStatus-mac ./main.go
|
||||
GOOS=darwin GOARCH=amd64 go build -o ./dist/ServerStatus-mac -ldflags="-X main.version=${VERSION}" ./main.go
|
||||
|
||||
windows:
|
||||
GOOS=windows GOARCH=386 go build -o ./dist/ServerStatus-windows.exe ./main.go
|
||||
GOOS=windows GOARCH=386 go build -o ./dist/ServerStatus-windows.exe -ldflags="-X main.version=${VERSION}" ./main.go
|
||||
|
||||
clean:
|
||||
rm -rf ./dist
|
||||
@@ -16,4 +18,7 @@ clean:
|
||||
copyfiles:
|
||||
cp config.template.json ./dist/config.json
|
||||
|
||||
zip:
|
||||
zip -r dist.zip dist
|
||||
|
||||
all: linux mac windows copyfiles
|
||||
|
||||
Reference in New Issue
Block a user