diff --git a/sdk/common.mk b/sdk/common.mk index 91ec216..0c9c987 100644 --- a/sdk/common.mk +++ b/sdk/common.mk @@ -29,7 +29,7 @@ ifeq ($(OS),Windows_NT) ZXSDK_PLATFORM = $(ZXSDK)/windows-x86 endif else - ZXSDK_PLATFORM = $(ZXSDK) + ZXSDK_PLATFORM = $(ZXSDK) endif export ZXSDK_PLATFORM @@ -80,7 +80,7 @@ ZCCCFG = $(Z88DK)/lib/config ifeq ($(OS),Windows_NT) # Fix paths under Cygwin for Z88DK on Windows ifeq ($(shell echo $$OSTYPE),cygwin) - ZCCCFG = $(shell cygpath -m $(ZCCCFG)) + ZCCCFG := $(shell cygpath -m $(ZCCCFG)) endif endif export ZCCCFG diff --git a/sdk/src/sdcc.inc.mk b/sdk/src/sdcc.inc.mk index 1733973..b9d52f6 100644 --- a/sdk/src/sdcc.inc.mk +++ b/sdk/src/sdcc.inc.mk @@ -99,10 +99,10 @@ install-sdcc: | sdcc/.extracted for d in $(SDCC_SUBDIRS); do\ if [ $$d = bin ]; then\ find $$d -type f\ - | awk '{print gensub(/^(.+)\/([^/]+)/, "$$(DEST)$$(prefix)/\\1/\\2: \\1/\\2 | $$(DEST)$$(prefix)/\\1\n\t$$(INSTALL_PROGRAM) -m 755 $$< $$@", "g")}';\ + | sed -Ee 's,^(.+)/([^/]+),$$(DEST)$$(prefix)/\1/\2: \1/\2 | $$(DEST)$$(prefix)/\1\n\t$$(INSTALL_PROGRAM) -m 755 $$< $$@,';\ else\ find $$d -type f\ - | awk '{print gensub(/^(.+)\/([^/]+)/, "$$(DEST)$$(prefix)/\\1/\\2: \\1/\\2 | $$(DEST)$$(prefix)/\\1\n\t$$(INSTALL) -m 644 $$< $$@", "g")}';\ + | sed -Ee 's,^(.+)/([^/]+),$$(DEST)$$(prefix)/\1/\2: \1/\2 | $$(DEST)$$(prefix)/\1\n\t$$(INSTALL) -m 644 $$< $$@,';\ fi;\ done; } >install.mk;\ $(MAKE) -w -f install.mk DEST=$(DEST) prefix=$(prefix) INSTALL=$(INSTALL) INSTALL_PROGRAM=$(INSTALL_PROGRAM) install