added install/uninstall

pull/796/head
Sebastian Plamauer 2014-08-11 19:47:00 +02:00
rodzic 6e6bcccdc1
commit 2eeeafcba5
1 zmienionych plików z 12 dodań i 0 usunięć

Wyświetl plik

@ -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)