From c36dbe6eb447239824f0014ec6beae2df9f42a7c Mon Sep 17 00:00:00 2001 From: Justus Winter Date: Fri, 22 Mar 2019 16:21:03 +0100 Subject: Fix build on macOS. - Use GNU install, use the correct extension for dynamic libraries. - Fixes #226. --- Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index ba9363f4..d895cefe 100644 --- a/Makefile +++ b/Makefile @@ -24,11 +24,16 @@ RSYNC_FLAGS ?= CARGO ?= cargo GIT ?= git RSYNC ?= rsync -INSTALL ?= install TAR ?= tar XZ ?= xz GPG ?= gpg +ifeq ($(shell uname -s), Darwin) + INSTALL ?= ginstall +else + INSTALL ?= install +endif + VERSION ?= $(shell grep '^version[[:space:]]*=[[:space:]]*' Cargo.toml | cut -d'"' -f2) # Make sure subprocesses pick these up. -- cgit v1.2.3