From 9c19aa4d3327eb5be8c4e25495ff56c46b77a0d2 Mon Sep 17 00:00:00 2001 From: Tyler Murphy Date: Wed, 12 Apr 2023 11:56:55 -0400 Subject: makefile install and uninstall, use different config path --- Makefile | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'Makefile') diff --git a/Makefile b/Makefile index a2921f2..5998a41 100644 --- a/Makefile +++ b/Makefile @@ -34,3 +34,16 @@ $(BIN)/%.o: %.c clean: rm -rf $(APP) rm -rf $(BIN) + +install: + cp bin/app /usr/local/bin/wrapper + +uninstall: + rm /usr/local/bin/wrapper + +openrc-install: install + cp service/openrc /etc/init.d/wrapper + chmod +x /etc/init.d/wrapper + +openrc-uninstall: uninstall + rm /etc/init.d/wrapper -- cgit v1.2.3-freya