podterminal/Makefile

21 lines
406 B
Makefile

release: deps
CGO_ENABLED=1 go build -buildvcs=true .
dev:
go build .
./podterminal
deps:
go mod download
go mod tidy
install:
cp podterminal /usr/local/bin/podterminal
mkdir -p /etc/podterminal
useradd -r -s /bin/false podterminal
cp ./exampleconfig.yaml /etc/podterminal/config.yaml
cp podterminal.service /etc/systemd/system/
systemctl daemon-reload
systemctl enable --now podterminal