From 39dd1595871162553a24b276e12a99fad399dd5e Mon Sep 17 00:00:00 2001 From: David Scott Date: Thu, 11 Sep 2014 16:57:05 +0100 Subject: [PATCH] Fix 'make install' on OS X We decompose 'install -D' into 'mkdir -p' and 'install' Signed-off-by: David Scott --- Makefile | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 16a83ed..58fc047 100644 --- a/Makefile +++ b/Makefile @@ -15,9 +15,12 @@ clean: setup.data ocaml setup.ml -clean install: build - install -D -m 755 main.native ${BINDIR}/vhd-tool || echo "Failed to install vhd-tool" - install -D -m 755 sparse_dd.native ${LIBEXECDIR}/sparse_dd || echo "Failed to install sparse_dd" - install -D -m 644 src/sparse_dd.conf ${ETCDIR}/sparse_dd.conf || echo "Failed to install sparse_dd.conf" + mkdir -p ${BINDIR} + install -m 755 main.native ${BINDIR}/vhd-tool || echo "Failed to install vhd-tool" + mkdir -p ${LIBEXECDIR} + install -m 755 sparse_dd.native ${LIBEXECDIR}/sparse_dd || echo "Failed to install sparse_dd" + mkdir -p ${ETCDIR} + install -m 644 src/sparse_dd.conf ${ETCDIR}/sparse_dd.conf || echo "Failed to install sparse_dd.conf" .PHONY: uninstall uninstall: