kas/Makefile

18 lines
401 B
Makefile

all:
update: refresh install
sudo systemctl restart kas.service
refresh:
git pull --rebase
install:
go build .
sudo mv kas /usr/local/bin/kas
setup:
sudo install -m 0644 -g daemon -o nobody kas.service /etc/systemd/system/kas.service
sudo install -m 0755 -g daemon -o nobody -d /etc/kas
sudo install -m 0644 -g daemon -o nobody kas.yaml /etc/kas/kas.yaml
sudo systemctl enable kas.service