hostess/Makefile
Chris Bednarski d3e97d1758 Fix argument parsing for CLI
Add tests for main and commands
Fix documentation for installation so the program works with sudo
2020-02-28 09:51:07 -08:00

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