From ffbf51a363bb981202a5d719a45553dd747b6a81 Mon Sep 17 00:00:00 2001 From: Thomas Bernard Date: Wed, 14 Feb 2018 01:00:02 +0100 Subject: [PATCH] Makefile: OS X tar doesn't support --transform --- src/Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Makefile b/src/Makefile index 79b1637a..8730b98d 100644 --- a/src/Makefile +++ b/src/Makefile @@ -105,6 +105,9 @@ else OPTIM = 3 CP = cp ZIP = zip + TARTRANSFORM = $(shell if $(TAR) --version | grep 'GNU tar' > /dev/null ; then \ + echo "--strip=1 --transform 's,^,grafx2/,g'" ; else \ + echo "-s '/\.\./grafx2/'" ; fi ) PLATFORMFILES = ../share/grafx2/gfx2.png # Where the SDL frameworks are located FWDIR = /Library/Frameworks