'$(info) command io redirection

Can I get standard error redirected from make info command to a file? E.g. if I wanna print compilation command and redirect 2> to a file, the file gets just an empty string but the command inside the info parenthesis is printed, like bellow:

ifdef VERBOSE
  verbose := @cat /tmp/compilation.out
endif

development: $(source)
    # Pipe to cat is just to redirect signals from make to don't exit on error
    @$(info $(CC) -o $(target) $^ $(DEBUG)) 2> /tmp/compilation.out | cat
    $(verbose)
    @cat /tmp/compilation.out >> $(log)


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source