Skip to content

Commit

Permalink
Fix 'make install' on OS X
Browse files Browse the repository at this point in the history
We decompose 'install -D' into 'mkdir -p' and 'install'

Signed-off-by: David Scott <dave.scott@citrix.com>
  • Loading branch information
David Scott committed Sep 11, 2014
1 parent 054859f commit 39dd159
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 39dd159

Please sign in to comment.