From c5892b5862abfabace5be04869ed5fcbc1b8dba8 Mon Sep 17 00:00:00 2001 From: Andy Grind Date: Thu, 4 Jan 2018 15:18:35 -0500 Subject: [PATCH] Well this is fun --- sgdk/Makefile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/sgdk/Makefile b/sgdk/Makefile index eabe7aa..e3ea221 100644 --- a/sgdk/Makefile +++ b/sgdk/Makefile @@ -17,9 +17,15 @@ all: SGDK tools $(LIBMD) tools: $(BINTOS) $(RESCOMP) $(XGMTOOL) $(WAVTORAW) $(PCMTORAW) $(SIZEBND) $(LZ4W) +# OSX sed fails without the '', and GNU fails with, cool beans +SED_FIX= +ifeq ($(shell uname -s),Darwin) + SED_FIX='' +endif + $(LIBMD): # Compress resources with lz4w instead of aplib - sed -i '' 's/-1/2/g' SGDK/res/libres.res + sed -i $(SED_FIX) 's/-1/2/g' SGDK/res/libres.res cp -f Makefile.libmd SGDK/Makefile make -C SGDK cp -f SGDK/libmd.a $@