From 1a313306d6b5a3587aac12bd0093876e84386b03 Mon Sep 17 00:00:00 2001 From: Quentin Rameau Date: Mon, 27 Feb 2017 18:02:44 +0100 Subject: add install and uninstall targets to Makefile --- Makefile | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'Makefile') 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) -- cgit 1.4.1