In makefiles, a line prefixed with an at symbols disables the print of the output. I have a makefile where every line is prefixed with an at, but for debug I need to see wha
To make things even more configurable, allow a make switch to enable verbosity. It default normal to silent mode. Only with the -e VERBOSE=1 mode it will be verbose of course:
##
# Verbose ENABLE/DISABLE
# invoke make -e VERBOSE=1
##
V=@
ifeq ($(VERBOSE),1)
V=
endif
all:
$(V)echo test
echo test
Thank you for this topic it was of great help for my work.