avoid breaking on targets with special chars
This commit is contained in:
parent
10767638ca
commit
00ce00c246
7
Makefile
7
Makefile
|
@ -96,7 +96,7 @@ define toolchain-profile-untracked
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define toolchain-profile-start
|
define toolchain-profile-start
|
||||||
printf "%s,$(call epochms),\n" "$@" >> $(TOOLCHAIN_PROFILE_FILE);
|
printf "%s,$(call epochms),\n" "$@" >> "$(TOOLCHAIN_PROFILE_FILE)"
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define toolchain-profile-stop
|
define toolchain-profile-stop
|
||||||
|
@ -104,9 +104,10 @@ define toolchain-profile-stop
|
||||||
&& cp $(TOOLCHAIN_PROFILE_FILE) $$tmpfile \
|
&& cp $(TOOLCHAIN_PROFILE_FILE) $$tmpfile \
|
||||||
&& awk \
|
&& awk \
|
||||||
-v ms="$(call epochms)" \
|
-v ms="$(call epochms)" \
|
||||||
'/^$(@),/ {$$0=$$0ms} 1' \
|
-v target="$(@)" \
|
||||||
|
'$$1 ~ "^" target {$$0=$$0ms} 1' \
|
||||||
$$tmpfile \
|
$$tmpfile \
|
||||||
> $(TOOLCHAIN_PROFILE_FILE)
|
> "$(TOOLCHAIN_PROFILE_FILE)"
|
||||||
endef
|
endef
|
||||||
|
|
||||||
export
|
export
|
||||||
|
|
Loading…
Reference in New Issue