2020-11-21 22:36:15 +01:00
|
|
|
APP=statusline
|
|
|
|
BUILDFLAGS=
|
2020-11-21 04:07:18 +01:00
|
|
|
|
2020-11-21 22:36:15 +01:00
|
|
|
all: build
|
2020-11-21 04:07:18 +01:00
|
|
|
|
2020-11-21 22:36:15 +01:00
|
|
|
.PHONY: run
|
2020-11-21 04:07:18 +01:00
|
|
|
run:
|
2020-11-21 22:36:15 +01:00
|
|
|
go run .
|
|
|
|
|
|
|
|
.PHONY: clean
|
|
|
|
clean:
|
|
|
|
go clean
|
|
|
|
|
|
|
|
.PHONY: build
|
|
|
|
build: clean
|
2021-07-09 01:35:15 +02:00
|
|
|
go build ${BUILDFLAGS}
|
2020-11-21 04:07:18 +01:00
|
|
|
|
2020-11-21 22:36:15 +01:00
|
|
|
.PHONY: install
|
2020-11-21 04:07:18 +01:00
|
|
|
install:
|
2020-11-21 22:36:15 +01:00
|
|
|
go install ${BUILDFLAGS}
|
|
|
|
|
|
|
|
.PHONY: uninstall
|
|
|
|
uninstall:
|
|
|
|
go clean -i
|
|
|
|
|
|
|
|
.PHONY: release
|
|
|
|
release:
|
|
|
|
rm -f release/*
|
2021-07-10 02:28:49 +02:00
|
|
|
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}
|