I use redirect output to a file with ">".

'''
make test > test.out
'''

My option has 10 differences in edit distance compared to your option, but 5 more characters:

'''
make test debug
'''

but in code is 15 lines more complex.

What's your choice?