From 2eeeafcba5544c37e52a6440ce696dae82376537 Mon Sep 17 00:00:00 2001 From: Sebastian Plamauer Date: Mon, 11 Aug 2014 19:47:00 +0200 Subject: [PATCH] added install/uninstall --- unix/Makefile | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/unix/Makefile b/unix/Makefile index afe268ae4..81f5077f7 100644 --- a/unix/Makefile +++ b/unix/Makefile @@ -97,3 +97,15 @@ include ../py/mkrules.mk test: $(PROG) ../tests/run-tests $(eval DIRNAME=$(notdir $(CURDIR))) cd ../tests && MICROPY_MICROPYTHON=../$(DIRNAME)/$(PROG) ./run-tests + +# install micropython in /usr/local/bin +TARGET = micropython +PREFIX = $(DESTDIR)/usr/local +BINDIR = $(PREFIX)/bin + +install: micropython + install -D $(TARGET) $(BINDIR)/$(TARGET) + +# uninstall micropython +uninstall: + -rm $(BINDIR)/$(TARGET)