feat: add line numbers to debug output with cat

This commit is contained in:
Daylin Morgan 2022-09-17 15:09:52 -05:00
parent 84a34a74d0
commit 18ff88b714

View file

@ -10,7 +10,9 @@ create_string = $(subst $(\n),\n,$(call escape_shellstring,$(call escape_printf,
printline = printf -- "<----------------------------------->\n" printline = printf -- "<----------------------------------->\n"
ifdef DEBUG ifdef DEBUG
define _debug_runner 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) @printf "$(call create_string,$(3))" | $(2)
endef endef
py = $(call _debug_runner,Python,python3,$($(1))) py = $(call _debug_runner,Python,python3,$($(1)))