Remove newlines and the like from the makefile rules generator output, as it breaks the makefile parser somehow (even though pasting the output directly in doesn't).