From 7aed6cb9c50509beb92a3e73814a3e50732b6005 Mon Sep 17 00:00:00 2001 From: Geoffrey Merck Date: Tue, 10 Mar 2020 06:08:14 +0100 Subject: [PATCH] Add PHONY where required --- Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Makefile b/Makefile index 975009d..23951cd 100644 --- a/Makefile +++ b/Makefile @@ -26,11 +26,13 @@ clean: -include $(DEPS) # install, uninstall and removehostfiles need root priviledges +.PHONY: newhostfiles newhostfiles : /bin/mkdir -p $(CFGDIR) /usr/bin/wget -O $(CFGDIR)/DExtra_Hosts.txt http://www.pistar.uk/downloads/DExtra_Hosts.txt /usr/bin/wget -O $(CFGDIR)/DCS_Hosts.txt http://www.pistar.uk/downloads/DCS_Hosts.txt +.PHONY: install install : newhostfiles sgs-xl /bin/mkdir -p $(CFGDIR) /bin/cp -f sgs-xl.cfg $(CFGDIR) @@ -41,6 +43,7 @@ install : newhostfiles sgs-xl systemctl daemon-reload systemctl start sgs-xl.service +.PHONY: uninstall uninstall : systemctl stop sgs-xl.service systemctl disable sgs-xl.service @@ -49,6 +52,7 @@ uninstall : /bin/rm -f $(BINDIR)/sgs-xl /bin/rm -rf $(CFGDIR) +.PHONY: removehostfiles removehostfiles : /bin/rm -f $(CFGDIR)/DExtra_Hosts.txt /bin/rm -f $(CFGDIR)/DCS_Hosts.txt