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.
pull/5644/head
David Lechner 2020-02-12 17:13:39 -06:00 zatwierdzone przez Damien George
rodzic d2f22ea953
commit c5f4268c99
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

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