Problem: the xml2rfc tool reports errors using line numbers relative to the XML doc (not the markdown doc), but the makefile deletes the .xml file, so it's a flaming pain when all it gives you is
Error: Invalid document before running preptool.
and an XML line number.
I suggest a simple fix: if xml2rfc returns a non-zero status code, then don't rm the .xml file.