summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorDave Hylands <dhylands@gmail.com>2016-11-14 11:02:49 -0800
committerDamien George <damien.p.george@gmail.com>2016-11-15 16:07:48 +1100
commit0400fa45bacbba0f5d0239874e4cfc379f7d9ae2 (patch)
tree7beb87a74c241b9de7812036484ef993a6798069
parenta0b2c6ad32230d679260eb2a545e5272234254ff (diff)
downloadmicropython-0400fa45bacbba0f5d0239874e4cfc379f7d9ae2.tar.gz
micropython-0400fa45bacbba0f5d0239874e4cfc379f7d9ae2.zip
py/mkrules.mk: Rework find command so it works on OSX.
The Mac version of find doesn't support -printf, so this changes things to use sed to strip off the leading path element instead.
-rw-r--r--py/mkrules.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/py/mkrules.mk b/py/mkrules.mk
index ea647e86f8..6f33630c97 100644
--- a/py/mkrules.mk
+++ b/py/mkrules.mk
@@ -108,7 +108,7 @@ endif
ifneq ($(FROZEN_MPY_DIR),)
# make a list of all the .py files that need compiling and freezing
-FROZEN_MPY_PY_FILES := $(shell find -L $(FROZEN_MPY_DIR) -type f -name '*.py' -printf '%P\n')
+FROZEN_MPY_PY_FILES := $(shell find -L $(FROZEN_MPY_DIR) -type f -name '*.py' | sed -e 's=^$(FROZEN_MPY_DIR)/==')
FROZEN_MPY_MPY_FILES := $(addprefix $(BUILD)/frozen_mpy/,$(FROZEN_MPY_PY_FILES:.py=.mpy))
# to build .mpy files from .py files