mirror of
https://github.com/daylinmorgan/task.mk.git
synced 2024-12-22 01:50:44 -06:00
feat: add line numbers to debug output with cat
This commit is contained in:
parent
84a34a74d0
commit
18ff88b714
1 changed files with 3 additions and 1 deletions
|
@ -10,7 +10,9 @@ create_string = $(subst $(\n),\n,$(call escape_shellstring,$(call escape_printf,
|
|||
printline = printf -- "<----------------------------------->\n"
|
||||
ifdef DEBUG
|
||||
define _debug_runner
|
||||
@printf "$(1) Script:\n";$(printline);printf "$(call create_string,$(3))\n";$(printline)
|
||||
@printf "$(1) Script:\n";$(printline);
|
||||
@printf "$(call create_string,$(3))\n" | cat -n
|
||||
@$(printline)
|
||||
@printf "$(call create_string,$(3))" | $(2)
|
||||
endef
|
||||
py = $(call _debug_runner,Python,python3,$($(1)))
|
||||
|
|
Loading…
Reference in a new issue