[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: The bugs in make v3.82
From: |
Edward Welbourne |
Subject: |
Re: The bugs in make v3.82 |
Date: |
Wed, 29 Sep 2010 10:38:38 +0200 |
> 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.