mirror of
https://github.com/cbednarski/hostess
synced 2024-11-11 19:10:37 +00:00
d3e97d1758
Add tests for main and commands Fix documentation for installation so the program works with sudo
21 lines
684 B
Makefile
21 lines
684 B
Makefile
RELEASE_VERSION=$(shell git describe --tags)
|
|
|
|
test:
|
|
go test ./...
|
|
go vet ./...
|
|
|
|
install:
|
|
go build -o bin/hostess .
|
|
sudo mv bin/hostess /usr/local/bin/hostess
|
|
|
|
release: test
|
|
GOOS=windows GOARCH=amd64 go build -ldflags "-X main.Version=${RELEASE_VERSION}" -o bin/hostess_windows_amd64.exe .
|
|
GOOS=darwin GOARCH=amd64 go build -ldflags "-X main.Version=${RELEASE_VERSION}" -o bin/hostess_macos_amd64 .
|
|
GOOS=linux GOARCH=amd64 go build -ldflags "-X main.Version=${RELEASE_VERSION}" -o bin/hostess_linux_amd64 .
|
|
GOOS=linux GOARCH=arm go build -ldflags "-X main.Version=${RELEASE_VERSION}" -o bin/hostess_linux_arm .
|
|
|
|
clean:
|
|
rm -rf ./bin/
|
|
|
|
.PHONY: install test release clean
|