From 31fc81d3b8bb227109777eed02d0021e564fb523 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20M=C3=BCller?= <mail@mueller-martin.net> Date: Sat, 16 Apr 2016 01:04:21 +0200 Subject: [PATCH] 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. --- unix/Makefile | 5 +++-- 1 file 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: -- GitLab