> Using a directory as a normal prerequisite is almost never what you > want. > > You have two choices.
Three: wherever you currently declare a dependency on a directory, instead declare a dependency on a .exists file *in* that directory. Then have the rule for a .exists file create its directory and touch the .exists file: %/.exists: mkdir -p $(@D) && touch $@ $(objDir)/%.d: %.cpp $(objDir)/.exists makefile would then work just fine. Eddy. _______________________________________________ Bug-make mailing list Bug-make@gnu.org http://lists.gnu.org/mailman/listinfo/bug-make