mirror of
https://github.com/stevenhowes/dorset-binformation.git
synced 2026-05-26 15:53:28 +01:00
31 lines
500 B
Makefile
31 lines
500 B
Makefile
.DEFAULT_GOAL := build
|
|
|
|
clean:
|
|
rm -f dorset-binformation
|
|
|
|
fmt:
|
|
go fmt ./...
|
|
.PHONY:fmt
|
|
|
|
lint: fmt
|
|
golint ./...
|
|
.PHONY:lint
|
|
|
|
vet: fmt
|
|
go vet ./...
|
|
.PHONY:vet
|
|
|
|
build: vet
|
|
go build
|
|
.PHONY:build
|
|
|
|
run: build
|
|
./dorset-binformation
|
|
.PHONY:run
|
|
|
|
install:
|
|
mkdir -p /opt/dorset-binformation/
|
|
useradd dorset-binformation || true
|
|
chown dorset-binformation:dorset-binformation /opt/dorset-binformation/
|
|
cp dorset-binformation /opt/dorset-binformation/
|
|
cp dorset-binformation.service /etc/systemd/system/
|