summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--unix/Makefile12
1 files changed, 12 insertions, 0 deletions
diff --git a/unix/Makefile b/unix/Makefile
index afe268ae45..81f5077f73 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)