doc: tidy up makefile rules