Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
uPython-mirror
Commits
659b06b2
Commit
659b06b2
authored
Nov 15, 2016
by
Damien George
Browse files
py/*.mk: Replace uses of 'sed' with $(SED).
parent
0400fa45
Changes
2
Hide whitespace changes
Inline
Side-by-side
py/mkrules.mk
View file @
659b06b2
...
...
@@ -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'
|
sed
-e
's=^
$(FROZEN_MPY_DIR)
/=='
)
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
...
...
py/py.mk
View file @
659b06b2
...
...
@@ -269,7 +269,7 @@ MPCONFIGPORT_MK = $(wildcard mpconfigport.mk)
# the lines in "" and then unwrap after the preprocessor is finished.
$(HEADER_BUILD)/qstrdefs.generated.h
:
$(PY_QSTR_DEFS) $(QSTR_DEFS) $(QSTR_DEFS_COLLECTED) $(PY_SRC)/makeqstrdata.py mpconfigport.h $(MPCONFIGPORT_MK) $(PY_SRC)/mpconfig.h | $(HEADER_BUILD)
$(ECHO)
"GEN
$@
"
$(Q)
cat
$(PY_QSTR_DEFS)
$(QSTR_DEFS)
$(QSTR_DEFS_COLLECTED)
|
$(SED)
's/^Q(.*)/"&"/'
|
$(CPP)
$(CFLAGS)
- |
sed
's/^"\(Q(.*)\)"/\1/'
>
$(HEADER_BUILD)
/qstrdefs.preprocessed.h
$(Q)
cat
$(PY_QSTR_DEFS)
$(QSTR_DEFS)
$(QSTR_DEFS_COLLECTED)
|
$(SED)
's/^Q(.*)/"&"/'
|
$(CPP)
$(CFLAGS)
- |
$(SED)
's/^"\(Q(.*)\)"/\1/'
>
$(HEADER_BUILD)
/qstrdefs.preprocessed.h
$(Q)$(PYTHON)
$(PY_SRC)
/makeqstrdata.py
$(HEADER_BUILD)
/qstrdefs.preprocessed.h
>
$@
# emitters
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment