summary refs log tree commit diff
path: root/Makefile
diff options
context:
space:
mode:
authorQuentin Rameau <quinq@fifth.space>2017-02-27 18:02:44 +0100
committerQuentin Carbonneaux <quentin.carbonneaux@yale.edu>2017-02-27 12:47:29 -0500
commit1a313306d6b5a3587aac12bd0093876e84386b03 (patch)
tree88f222db13440e8f3dd24c071800cda872bd580a /Makefile
parentf151e426585ef86e3b4295bbe02f5c9072b58ea4 (diff)
downloadroux-1a313306d6b5a3587aac12bd0093876e84386b03.tar.gz
add install and uninstall targets to Makefile
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 7 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index fc649f8..04ebdad 100644
--- a/Makefile
+++ b/Makefile
@@ -30,6 +30,13 @@ config.h:
 	*)         echo "#define Defaultasm Gaself" ;;   \
 	esac > $@
 
+install: $(OBJDIR)/$(BIN)
+	mkdir -p "$(DESTDIR)/$(PREFIX)/bin/"
+	cp $< "$(DESTDIR)/$(PREFIX)/bin/"
+
+uninstall:
+	rm -f "$(DESTDIR)/$(PREFIX)/bin/$(BIN)"
+
 clean:
 	rm -fr $(OBJDIR)