On Mon, May 3, 2021 at 8:57 AM Paul Smith wrote:
> data.h: data.c ;
>
> (note the extra semicolon). Now it will work.
Ofcourse, when data.c is present and data.h is missing, then make will
not recreate data.h. It'll run the empty rule.
Your original makefile
data.h data.c: data.foo
I had accidentally posted to bug-make@gnu.org first, but this
belongs to bug-autom...@gnu.org.
Paul Smith wrote:
> On Mon, 2021-05-03 at 12:55 +0200, Frank Heckenbach wrote:
> > The manual (
> > https://www.gnu.org/software/automake/manual/html_node/Multiple-Outputs.html
> > )
> > describes
On Mon, 2021-05-03 at 12:55 +0200, Frank Heckenbach wrote:
> The manual (
> https://www.gnu.org/software/automake/manual/html_node/Multiple-Outputs.html
> )
> describes various ways to handle commands with multiple outputs.
Just to remind, this is the mailing list for GNU make... the above
The manual
(https://www.gnu.org/software/automake/manual/html_node/Multiple-Outputs.html)
describes various ways to handle commands with multiple outputs.
One intermediate solution that's said to work except with phony
dependencies doesn't actually seem to work:
% cat Makefile
all: data.c data.h