Update Makefile
This commit is contained in:
parent
6259b83555
commit
51bf76872d
18
Makefile
18
Makefile
@ -13,7 +13,7 @@ DOCDIR ?= $(DATADIR)/doc/nohang
|
|||||||
MANDIR ?= $(DATADIR)/man
|
MANDIR ?= $(DATADIR)/man
|
||||||
|
|
||||||
all:
|
all:
|
||||||
@ echo "Use: make install, build_deb, make uninstall"
|
@ echo "Use: make install, install-openrc, make uninstall"
|
||||||
|
|
||||||
base:
|
base:
|
||||||
install -d $(DESTDIR)$(SBINDIR)
|
install -d $(DESTDIR)$(SBINDIR)
|
||||||
@ -88,13 +88,6 @@ openrc:
|
|||||||
|
|
||||||
install-openrc: base openrc
|
install-openrc: base openrc
|
||||||
|
|
||||||
uninstall-openrc: uninstall
|
|
||||||
# 'make uninstall-openrc' must not fail with error if openrc is unavailable or returns error
|
|
||||||
-rc-service nohang-desktop stop || true
|
|
||||||
-rc-service nohang stop || true
|
|
||||||
-rm -fv /etc/init.d/nohang-desktop
|
|
||||||
-rm -fv /etc/init.d/nohang
|
|
||||||
|
|
||||||
uninstall-base:
|
uninstall-base:
|
||||||
rm -fv $(DESTDIR)$(SBINDIR)/nohang
|
rm -fv $(DESTDIR)$(SBINDIR)/nohang
|
||||||
rm -fv $(DESTDIR)$(BINDIR)/oom-sort
|
rm -fv $(DESTDIR)$(BINDIR)/oom-sort
|
||||||
@ -111,7 +104,7 @@ uninstall-base:
|
|||||||
rm -fvr $(DESTDIR)$(SYSCONFDIR)/nohang/
|
rm -fvr $(DESTDIR)$(SYSCONFDIR)/nohang/
|
||||||
|
|
||||||
uninstall-units:
|
uninstall-units:
|
||||||
# 'make uninstall' must not fail with error if systemctl is unavailable or returns error
|
# 'make uninstall-units' must not fail with error if systemctl is unavailable or returns error
|
||||||
-systemctl stop nohang.service || true
|
-systemctl stop nohang.service || true
|
||||||
-systemctl stop nohang-desktop.service || true
|
-systemctl stop nohang-desktop.service || true
|
||||||
-systemctl disable nohang.service || true
|
-systemctl disable nohang.service || true
|
||||||
@ -119,4 +112,11 @@ uninstall-units:
|
|||||||
-rm -fv $(DESTDIR)$(SYSTEMDUNITDIR)/nohang.service
|
-rm -fv $(DESTDIR)$(SYSTEMDUNITDIR)/nohang.service
|
||||||
-rm -fv $(DESTDIR)$(SYSTEMDUNITDIR)/nohang-desktop.service
|
-rm -fv $(DESTDIR)$(SYSTEMDUNITDIR)/nohang-desktop.service
|
||||||
|
|
||||||
|
uninstall-openrc:
|
||||||
|
# 'make uninstall-openrc' must not fail with error if openrc is unavailable or returns error
|
||||||
|
-rc-service nohang-desktop stop || true
|
||||||
|
-rc-service nohang stop || true
|
||||||
|
-rm -fv $(DESTDIR)$(SYSCONFDIR)/init.d/nohang
|
||||||
|
-rm -fv $(DESTDIR)$(SYSCONFDIR)/init.d/nohang-desktop
|
||||||
|
|
||||||
uninstall: uninstall-base uninstall-units daemon-reload uninstall-openrc
|
uninstall: uninstall-base uninstall-units daemon-reload uninstall-openrc
|
||||||
|
Loading…
Reference in New Issue
Block a user