aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 7 insertions, 0 deletions
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