diff options
author | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2014-08-18 22:29:37 +0300 |
---|---|---|
committer | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2014-08-18 22:29:37 +0300 |
commit | 13ec400f28302c2ee78987e9df6deb8f7a134d3d (patch) | |
tree | de00f1bbabfbf02b98d9579133e4271fd266817b /unix | |
parent | 7fe2191c9b72e16d271735ca24a9def7ba072217 (diff) | |
parent | 2eeeafcba5544c37e52a6440ce696dae82376537 (diff) | |
download | micropython-13ec400f28302c2ee78987e9df6deb8f7a134d3d.tar.gz micropython-13ec400f28302c2ee78987e9df6deb8f7a134d3d.zip |
Merge pull request #796 from turbinenreiter/makeinstall
unix: Added install/uninstall
Diffstat (limited to 'unix')
-rw-r--r-- | unix/Makefile | 12 |
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) |