diff --git a/ports/unix/Makefile b/ports/unix/Makefile index 948cdd0c44..1e0a38ca25 100644 --- a/ports/unix/Makefile +++ b/ports/unix/Makefile @@ -248,3 +248,12 @@ axtls: $(TOP)/lib/axtls/README $(TOP)/lib/axtls/README: @echo "You cloned without --recursive, fetching submodules for you." (cd $(TOP); git submodule update --init --recursive) + +PREFIX = /usr/local +BINDIR = $(DESTDIR)$(PREFIX)/bin + +install: $(PROG) + install -D $(PROG) $(BINDIR)/$(PROG) + +uninstall: + -rm $(BINDIR)/$(PROG) diff --git a/ports/unix/variants/standard/mpconfigvariant.mk b/ports/unix/variants/standard/mpconfigvariant.mk index 6650c086f8..cf3efab8ae 100644 --- a/ports/unix/variants/standard/mpconfigvariant.mk +++ b/ports/unix/variants/standard/mpconfigvariant.mk @@ -1,16 +1,3 @@ # This is the default variant when you `make` the Unix port. PROG ?= micropython - -# install micropython in /usr/local/bin -TARGET = micropython -PREFIX = /usr/local -BINDIR = $(DESTDIR)$(PREFIX)/bin - -install: micropython - install -d $(BINDIR) - install $(TARGET) $(BINDIR)/$(TARGET) - -# uninstall micropython -uninstall: - -rm $(BINDIR)/$(TARGET)