Atomically replace the output directory

The old method of removing output/ completely before regenerating it leaves a
small window period of 404s. This eliminates this window period entirely.
Fix inconsistent indentation of Makefile