A status-right line for tmux
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

33 lines
779 B

APP=statusline
BUILDFLAGS=
all: build
.PHONY: run
run:
go run .
.PHONY: clean
clean:
go clean
.PHONY: build
build: clean
go build ${BUILDFLAGS}
.PHONY: install
install:
go install ${BUILDFLAGS}
.PHONY: uninstall
uninstall:
go clean -i
.PHONY: release
release:
rm -f release/*
GOOS=linux GOARCH=amd64 go build -o "release/${APP}_linux_amd64" -trimpath ${BUILDFLAGS}
GOOS=linux GOARCH=arm64 go build -o "release/${APP}_linux_arm64" -trimpath ${BUILDFLAGS}
GOOS=linux GOARCH=386 go build -o "release/${APP}_linux_386" -trimpath ${BUILDFLAGS}
GOOS=windows GOARCH=amd64 go build -o "release/${APP}_windows_amd64.exe" -trimpath ${BUILDFLAGS}
GOOS=windows GOARCH=386 go build -o "release/${APP}_windows_386.exe" -trimpath ${BUILDFLAGS}