make | tee >(split -d -b 10000000 - debug.log.0)
to split the output into several debug files after reaching 10MB.
this results in files called debug.log.000, debug.log.001, debug.log.002 ...
I could rename them afterwards with
for i in debug*; do echo $i; done
But how can I reconstruct the command, so they get the ending
.log at the end of each file directly?