Also, I've tried many times to make rules depending on directories, with bizarre results (the times when directories are written are... somewhat unpredictable). There's some order only prerequisite that may help: http://www.gnu.org/software/make/manual/html_node/Prerequisite-Types.html. Simpler, just plant a file `.directory` or `.made` to signal an action pertaining to a specific directory has succeeded.