20 lines
487 B
Makefile
20 lines
487 B
Makefile
BINARY_NAME=tps
|
|
|
|
all: build test
|
|
|
|
build:
|
|
mkdir -p dist
|
|
GOOS=darwin GOARCH=arm64 go build -o dist/${BINARY_NAME}.darwin_arm64 main.go
|
|
GOOS=linux GOARCH=amd64 go build -o dist/${BINARY_NAME}.linux_amd64 main.go
|
|
GOOS=windows GOARCH=amd64 go build -o dist/${BINARY_NAME}.windows_amd64.exe main.go
|
|
|
|
test:
|
|
/usr/local/go/bin/go test -timeout 30s -run ^Test mortons.site/tps/internal/properties
|
|
|
|
run:
|
|
go build -o ${BINARY_NAME} main.go
|
|
./${BINARY_NAME}
|
|
|
|
clean:
|
|
go clean
|
|
rm -rf dist
|