diff options
| author | Martin Müller | 2016-04-16 01:04:21 +0200 |
|---|---|---|
| committer | Paul Sokolovsky | 2016-04-28 21:45:27 +0300 |
| commit | 31fc81d3b8bb227109777eed02d0021e564fb523 (patch) | |
| tree | be7c7f37239d272ce4167370694e0d82111ebefe /unix | |
| parent | 193c62226c6c5028acb0d2c1bfb5064911a49753 (diff) | |
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.
Diffstat (limited to 'unix')
| -rw-r--r-- | unix/Makefile | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/unix/Makefile b/unix/Makefile index e534ccff5..655f26bb9 100644 --- a/unix/Makefile +++ b/unix/Makefile @@ -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: |
