unix/Makefile: Make install more compatible (BSD, etc.).

The current install command uses the flag -D which is specific to the
install command from GNU coreutils, but isn't available for the BSD
version. This solution uses the -d flag which should be commonly
available to create the target directory. Afterwards the target files
are installed to this directory seperately.
This commit is contained in:
Martin Müller 2016-04-16 01:04:21 +02:00 committed by Paul Sokolovsky
parent 193c62226c
commit 31fc81d3b8
1 changed files with 3 additions and 2 deletions

View File

@ -193,8 +193,9 @@ PIPSRC = ../tools/pip-micropython
PIPTARGET = pip-micropython
install: micropython
install -D $(TARGET) $(BINDIR)/$(TARGET)
install -D $(PIPSRC) $(BINDIR)/$(PIPTARGET)
install -d $(BINDIR)
install $(TARGET) $(BINDIR)/$(TARGET)
install $(PIPSRC) $(BINDIR)/$(PIPTARGET)
# uninstall micropython
uninstall: