mirror of
https://github.com/alvierahman90/gohookr.git
synced 2024-11-22 09:29:52 +00:00
19 lines
386 B
Makefile
19 lines
386 B
Makefile
|
all: install
|
||
|
|
||
|
clean:
|
||
|
rm -rf gohookr
|
||
|
|
||
|
install:
|
||
|
go mod tidy
|
||
|
go build -o gohookr
|
||
|
cp gohookr /usr/local/bin/
|
||
|
cp gohookr.service /usr/lib/systemd/system/
|
||
|
cp config.json /etc/gohookr.json
|
||
|
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
|