diff options
author | Quentin Rameau <quinq@fifth.space> | 2017-02-27 18:02:44 +0100 |
---|---|---|
committer | Quentin Carbonneaux <quentin.carbonneaux@yale.edu> | 2017-02-27 12:47:29 -0500 |
commit | 1a313306d6b5a3587aac12bd0093876e84386b03 (patch) | |
tree | 88f222db13440e8f3dd24c071800cda872bd580a | |
parent | f151e426585ef86e3b4295bbe02f5c9072b58ea4 (diff) | |
download | roux-1a313306d6b5a3587aac12bd0093876e84386b03.tar.gz |
add install and uninstall targets to Makefile
-rw-r--r-- | Makefile | 7 |
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) |