Makefile: Ensure that output directory exists before generating output.