aboutsummaryrefslogtreecommitdiff
path: root/ports/unix/variants
diff options
context:
space:
mode:
authorDavid Lechner2020-02-12 17:13:39 -0600
committerDamien George2020-02-16 23:35:52 +1100
commitc5f4268c9955f08894fec78c1eeacf78f55256c4 (patch)
tree0cf7166726ee457698d7c2c1206dae88d39efbdf /ports/unix/variants
parentd2f22ea9531ee7e61d3e3c8b818797fd3e947b01 (diff)
unix/variants/standard: Fix role of PREFIX when used to install.
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.
Diffstat (limited to 'ports/unix/variants')
-rw-r--r--ports/unix/variants/standard/mpconfigvariant.mk4
1 files changed, 2 insertions, 2 deletions
diff --git a/ports/unix/variants/standard/mpconfigvariant.mk b/ports/unix/variants/standard/mpconfigvariant.mk
index 28fad7be7..6650c086f 100644
--- a/ports/unix/variants/standard/mpconfigvariant.mk
+++ b/ports/unix/variants/standard/mpconfigvariant.mk
@@ -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)