We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 26cf0f6 commit c5892b5Copy full SHA for c5892b5
sgdk/Makefile
@@ -17,9 +17,15 @@ all: SGDK tools $(LIBMD)
17
18
tools: $(BINTOS) $(RESCOMP) $(XGMTOOL) $(WAVTORAW) $(PCMTORAW) $(SIZEBND) $(LZ4W)
19
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
+
26
$(LIBMD):
27
# Compress resources with lz4w instead of aplib
- sed -i '' 's/-1/2/g' SGDK/res/libres.res
28
+ sed -i $(SED_FIX) 's/-1/2/g' SGDK/res/libres.res
29
cp -f Makefile.libmd SGDK/Makefile
30
make -C SGDK
31
cp -f SGDK/libmd.a $@
0 commit comments