Abstract the directory creation recipe in the Makefile.