On Sat, 2013-02-23 at 02:32 +0000, Ian Lynagh wrote:
> The problem was that our compiler generates 2 output files (foo.o and
> foo.hi) when compiling one source file, and we had thus ended up with
> a bunch of rules like
>     %.hi: %.o ;

The right way to declare a rule that generates multiple targets is:

   %.o %.hi : %.c
            ...

In particular this won't break things when parallel builds are involved.
Is there some reason that doesn't work for you?


_______________________________________________
Bug-make mailing list
Bug-make@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-make

Reply via email to