aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2019-10-07 20:42:00 +0200
committerMattias Andrée <maandree@kth.se>2019-10-07 20:42:00 +0200
commit828ba846b5680020770a2404f4cfac61fe92de8c (patch)
tree8ecef2ddde2664cb9286e9125ed655f390bca2a8
parentUse new version of cg-base (diff)
downloadradharc-828ba846b5680020770a2404f4cfac61fe92de8c.tar.gz
radharc-828ba846b5680020770a2404f4cfac61fe92de8c.tar.bz2
radharc-828ba846b5680020770a2404f4cfac61fe92de8c.tar.xz
Add install and uninstall to makefile1.0
Signed-off-by: Mattias Andrée <maandree@kth.se>
-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