Skip to content

Commit c5892b5

Browse files
committed
Well this is fun
1 parent 26cf0f6 commit c5892b5

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

sgdk/Makefile

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,15 @@ all: SGDK tools $(LIBMD)
1717

1818
tools: $(BINTOS) $(RESCOMP) $(XGMTOOL) $(WAVTORAW) $(PCMTORAW) $(SIZEBND) $(LZ4W)
1919

20+
# OSX sed fails without the '', and GNU fails with, cool beans
21+
SED_FIX=
22+
ifeq ($(shell uname -s),Darwin)
23+
SED_FIX=''
24+
endif
25+
2026
$(LIBMD):
2127
# Compress resources with lz4w instead of aplib
22-
sed -i '' 's/-1/2/g' SGDK/res/libres.res
28+
sed -i $(SED_FIX) 's/-1/2/g' SGDK/res/libres.res
2329
cp -f Makefile.libmd SGDK/Makefile
2430
make -C SGDK
2531
cp -f SGDK/libmd.a $@

0 commit comments

Comments
 (0)