Skip to content
Snippets Groups Projects
Commit 13ec400f authored by Paul Sokolovsky's avatar Paul Sokolovsky
Browse files

Merge pull request #796 from turbinenreiter/makeinstall

unix: Added install/uninstall
parents 7fe2191c 2eeeafcb
Branches
Tags
No related merge requests found
...@@ -97,3 +97,15 @@ include ../py/mkrules.mk ...@@ -97,3 +97,15 @@ include ../py/mkrules.mk
test: $(PROG) ../tests/run-tests test: $(PROG) ../tests/run-tests
$(eval DIRNAME=$(notdir $(CURDIR))) $(eval DIRNAME=$(notdir $(CURDIR)))
cd ../tests && MICROPY_MICROPYTHON=../$(DIRNAME)/$(PROG) ./run-tests 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)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment