gohookr/Makefile

21 lines
403 B
Makefile
Raw Permalink Normal View History

2021-08-04 09:22:19 +00:00
all: install
clean:
rm -rf gohookr
2023-10-28 20:46:15 +00:00
build:
2021-08-04 09:22:19 +00:00
go mod tidy
go build -o gohookr
2023-10-28 20:46:15 +00:00
install: build
2021-08-04 09:22:19 +00:00
cp gohookr /usr/local/bin/
cp gohookr.service /usr/lib/systemd/system/
2021-08-04 21:12:38 +00:00
cp -n config.json /etc/gohookr.json
2021-08-04 09:22:19 +00:00
systemctl daemon-reload
systemctl enable --now gohookr
uninstall:
systemctl disable --now gohookr
rm -rf /usr/local/bin/gohookr /usr/lib/systemd/system/gohookr.service
systemctl daemon-reload