statusline/Makefile
Fanir d28ad1741d command line flags and no make release for Windows.
Added command line flags for styling and width.
Printing load averages doesn't work on windows.
2020-11-22 00:10:12 +01:00

32 lines
576 B
Makefile

APP=statusline
BUILDFLAGS=
all: build
.PHONY: run
run:
go run .
.PHONY: clean
clean:
go clean
.PHONY: build
build: clean
go build -o "${APP}" ${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}