aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorQuentin Rameau <[email protected]>2017-02-27 18:02:44 +0100
committerQuentin Carbonneaux <[email protected]>2017-02-27 12:47:29 -0500
commit1a313306d6b5a3587aac12bd0093876e84386b03 (patch)
tree88f222db13440e8f3dd24c071800cda872bd580a /Makefile
parentf151e426585ef86e3b4295bbe02f5c9072b58ea4 (diff)
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)