Skip to content

Commit 0400fa4

Browse files
dhylandsdpgeorge
authored andcommitted
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.
1 parent a0b2c6a commit 0400fa4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

py/mkrules.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ endif
108108

109109
ifneq ($(FROZEN_MPY_DIR),)
110110
# make a list of all the .py files that need compiling and freezing
111-
FROZEN_MPY_PY_FILES := $(shell find -L $(FROZEN_MPY_DIR) -type f -name '*.py' -printf '%P\n')
111+
FROZEN_MPY_PY_FILES := $(shell find -L $(FROZEN_MPY_DIR) -type f -name '*.py' | sed -e 's=^$(FROZEN_MPY_DIR)/==')
112112
FROZEN_MPY_MPY_FILES := $(addprefix $(BUILD)/frozen_mpy/,$(FROZEN_MPY_PY_FILES:.py=.mpy))
113113

114114
# to build .mpy files from .py files

0 commit comments

Comments
 (0)