Skip to content

Commit

Permalink
unix/variants/standard: Fix role of PREFIX when used to install.
Browse files Browse the repository at this point in the history
Currently it is not possible to override PREFIX when installing micropython
using the makefile.  It is common practice to be able to run something like
this:

    $ make install PREFIX=/usr DESTDIR=/tmp/staging

This fixes such usage.
  • Loading branch information
dlech authored and dpgeorge committed Feb 16, 2020
1 parent d2f22ea commit c5f4268
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ports/unix/variants/standard/mpconfigvariant.mk
Expand Up @@ -4,8 +4,8 @@ PROG ?= micropython

# install micropython in /usr/local/bin
TARGET = micropython
PREFIX = $(DESTDIR)/usr/local
BINDIR = $(PREFIX)/bin
PREFIX = /usr/local
BINDIR = $(DESTDIR)$(PREFIX)/bin

install: micropython
install -d $(BINDIR)
Expand Down

0 comments on commit c5f4268

Please sign in to comment.