From 828ba846b5680020770a2404f4cfac61fe92de8c Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Mon, 7 Oct 2019 20:42:00 +0200 Subject: Add install and uninstall to makefile MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- Makefile | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Makefile b/Makefile index 64843a7..cb69a13 100644 --- a/Makefile +++ b/Makefile @@ -20,6 +20,13 @@ $(OBJ): $(@:.o=.c) $(HDR) radharc: $(OBJ) $(CC) -o $@ $(OBJ) $(LDFLAGS) +install: radharc + mkdir -p -- "$(DESTDIR)$(PREFIX)/bin" + cp radharc -- "$(DESTDIR)$(PREFIX)/bin" + +uninstall: + -rm -f -- "$(DESTDIR)$(PREFIX)/bin/radharc" + clean: -rm -f -- radharc *.o -- cgit v1.2.3-70-g09d2