diff options
author | Michael Olbrich <m.olbrich@pengutronix.de> | 2019-02-18 09:07:39 +0100 |
---|---|---|
committer | Michael Olbrich <m.olbrich@pengutronix.de> | 2019-02-19 07:33:03 +0100 |
commit | 714827b6023e7dd248bcdbce4b47b02cc5aa5f35 (patch) | |
tree | 9459caa010731181e32d36b4e7f410086b5ac5ca /rules | |
parent | b1854484a0f2b701b198d55887bd30efc375cc11 (diff) | |
download | ptxdist-714827b6023e7dd248bcdbce4b47b02cc5aa5f35.tar.gz ptxdist-714827b6023e7dd248bcdbce4b47b02cc5aa5f35.tar.xz |
progress: count image stages
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'rules')
-rw-r--r-- | rules/post/function-finish.make | 6 | ||||
-rw-r--r-- | rules/post/function-touch.make | 10 |
2 files changed, 6 insertions, 10 deletions
diff --git a/rules/post/function-finish.make b/rules/post/function-finish.make index 22018a98d..a2ad32bca 100644 --- a/rules/post/function-finish.make +++ b/rules/post/function-finish.make @@ -9,9 +9,7 @@ # finish = \ - target="$(strip $(@))"; \ - target="$${target\#\#*/}"; \ - $(_touch_opt_output) \ - echo "finished target $${target}" + $(call _touch_opt_output,$(@)) \ + echo "finished target $(notdir $(@))" # vim: syntax=make diff --git a/rules/post/function-touch.make b/rules/post/function-touch.make index 730d41b57..ff0b26003 100644 --- a/rules/post/function-touch.make +++ b/rules/post/function-touch.make @@ -14,15 +14,13 @@ # ifdef PTXDIST_QUIET ifdef PTXDIST_FD_STDOUT -_touch_opt_output := echo "$$(ptxd_make_print_progress stop $${target})finished: $(PTX_COLOR_GREEN)$${target}$(PTX_COLOR_OFF)" >&$(PTXDIST_FD_STDOUT); +_touch_opt_output = echo "$$(ptxd_make_print_progress stop $(1))finished: $(PTX_COLOR_GREEN)$(notdir $(1))$(PTX_COLOR_OFF)" >&$(PTXDIST_FD_STDOUT); endif endif touch = \ - target="$(strip $(@))"; \ - touch "$${target}"; \ - target="$${target\#\#*/}"; \ - $(_touch_opt_output) \ - echo "finished target $${target}" + touch "$(@)"; \ + $(call _touch_opt_output,$(@)) \ + echo "finished target $(notdir $(@))" # vim: syntax=make |