8000 py: Update makefiles to use $(TOUCH) instead of hard coded "touch". · guidebee/micropython@a4f4239 · GitHub
[go: up one dir, main page]

Skip to content

Commit a4f4239

Browse files
Sebastien Rinsozdpgeorge
authored andcommitted
py: Update makefiles to use $(TOUCH) instead of hard coded "touch".
The variable $(TOUCH) is initialized with the "touch" value in mkenv.mk like for the other command line tools (rm, echo, cp, mkdir etc). With this, for example, Windows users can specify the path of touch.exe.
1 parent 9cf1cbb commit a4f4239

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

py/mkenv.mk

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ CP = cp
4343
MKDIR = mkdir
4444
SED = sed
4545
CAT = cat
46+
TOUCH = touch
4647
PYTHON = python3
4748

4849
AS = $(CROSS_COMPILE)as

py/mkrules.mk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ $(HEADER_BUILD)/qstr.i.last: $(SRC_QSTR) $(QSTR_GLOBAL_DEPENDENCIES) | $(HEADER_
7777
$(HEADER_BUILD)/qstr.split: $(HEADER_BUILD)/qstr.i.last
7878
$(ECHO) "GEN $@"
7979
$(Q)$(PYTHON) $(PY_SRC)/makeqstrdefs.py split $(HEADER_BUILD)/qstr.i.last $(HEADER_BUILD)/qstr $(QSTR_DEFS_COLLECTED)
80-
$(Q)touch $@
80+
$(Q)$(TOUCH) $@
8181

8282
$(QSTR_DEFS_COLLECTED): $(HEADER_BUILD)/qstr.split
8383
$(ECHO) "GEN $@"
@@ -190,7 +190,7 @@ print-cfg:
190190

191191
print-def:
192192
@$(ECHO) "The following defines are built into the $(CC) compiler"
193-
touch __empty__.c
193+
$(TOUCH) __empty__.c
194194
@$(CC) -E -Wp,-dM __empty__.c
195195
@$(RM) -f __empty__.c
196196

0 commit comments

Comments
 (0)
0