Dear all,

Is it possible to tell make that one produce several files at once?

Assume the following example:

b c: a
        cp a b
        cp a c

It seems make understands it as "To produce c I need to run this rule"
and "To produce b I need to run this rule", rather than "Okay, it will
be enough to run this rule to get obth b and c".

This seems to be especially true when -j is given.

Perhaps one should add a dependency like:

b: a

to avoid this?

But what if it is n targets rather than two which are produced
simultaneously?

Any hint?

thanks!

Sébastien.

_______________________________________________
Help-make mailing list
Help-make@gnu.org
https://lists.gnu.org/mailman/listinfo/help-make

Reply via email to