bd2fff6687
Invoking "make" will still build the standard "micropython" executable, but other variants are now build using, eg, "make VARIANT=minimal". This follows how bare-metal ports specify a particular board, and allows running any make target (eg clean, test) with any variant. Convenience targets (eg "make coverage") are provided to retain the old behaviour, at least for now. See issue #3043.
17 lines
341 B
Makefile
17 lines
341 B
Makefile
# This is the default variant when you `make` the Unix port.
|
|
|
|
PROG ?= micropython
|
|
|
|
# install micropython in /usr/local/bin
|
|
TARGET = micropython
|
|
PREFIX = $(DESTDIR)/usr/local
|
|
BINDIR = $(PREFIX)/bin
|
|
|
|
install: micropython
|
|
install -d $(BINDIR)
|
|
install $(TARGET) $(BINDIR)/$(TARGET)
|
|
|
|
# uninstall micropython
|
|
uninstall:
|
|
-rm $(BINDIR)/$(TARGET)
|