mirror of
https://github.com/alvierahman90/gohookr.git
synced 2024-11-24 01:49:55 +00:00
21 lines
403 B
Makefile
21 lines
403 B
Makefile
all: install
|
|
|
|
clean:
|
|
rm -rf gohookr
|
|
|
|
install: build
|
|
cp gohookr /usr/local/bin/
|
|
cp gohookr.service /usr/lib/systemd/system/
|
|
cp -n config.json /etc/gohookr.json
|
|
systemctl daemon-reload
|
|
systemctl enable --now gohookr
|
|
|
|
build:
|
|
go mod tidy
|
|
go build -o gohookr
|
|
|
|
uninstall:
|
|
systemctl disable --now gohookr
|
|
rm -rf /usr/local/bin/gohookr /usr/lib/systemd/system/gohookr.service
|
|
systemctl daemon-reload
|