Skip to content

Commit 2eeeafc

Browse files
author
Sebastian Plamauer
committed
added install/uninstall
1 parent 6e6bccc commit 2eeeafc

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

unix/Makefile

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,3 +97,15 @@ include ../py/mkrules.mk
9797
test: $(PROG) ../tests/run-tests
9898
$(eval DIRNAME=$(notdir $(CURDIR)))
9999
cd ../tests && MICROPY_MICROPYTHON=../$(DIRNAME)/$(PROG) ./run-tests
100+
101+
# install micropython in /usr/local/bin
102+
TARGET = micropython
103+
PREFIX = $(DESTDIR)/usr/local
104+
BINDIR = $(PREFIX)/bin
105+
106+
install: micropython
107+
install -D $(TARGET) $(BINDIR)/$(TARGET)
108+
109+
# uninstall micropython
110+
uninstall:
111+
-rm $(BINDIR)/$(TARGET)

0 commit comments

Comments
 (0)