I am looking to do some formatting of the output from my makefile using tput. An example: if you simply type
echo $(printf '%*s' "${COLUMNS:-$(tput cols)}" '' | tr ' ' –)
as a command in your shell it will output a nice line spanning the entire width of your terminal window.
I am wondering if there's any way to carry this over in a makefile? The following only produces a blank line:
lineTest:
@echo $$( printf '%*s' "${COLUMNS:-$(tput cols)}" '' | tr ' ' – )
Definitely a silly question, but please do chime in if you happen to know.