Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.programming > #10537

make: Multiple targets created by single rule vs parallel make

From Philipp Klaus Krause <pkk@spth.de>
Newsgroups comp.programming
Subject make: Multiple targets created by single rule vs parallel make
Date 2020-01-23 15:00 +0100
Organization solani.org
Message-ID <r0c8ue$eui$1@solani.org> (permalink)

Show all headers | View raw


In a Makefile, I have one rule that creates multiple targets, using the
&: feature of GNU make.

However, if I use make -j, the rule is still executed as many times as
there are targets. How can I avoid that without affecting other rules?

Philipp

Back to comp.programming | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

make: Multiple targets created by single rule vs parallel make Philipp Klaus Krause <pkk@spth.de> - 2020-01-23 15:00 +0100
  Re: make: Multiple targets created by single rule vs parallel make David Brown <david.brown@hesbynett.no> - 2020-01-23 15:31 +0100
    Re: make: Multiple targets created by single rule vs parallel make Philipp Klaus Krause <pkk@spth.de> - 2020-01-29 11:02 +0100
  Re: make: Multiple targets created by single rule vs parallel make Philipp Klaus Krause <pkk@spth.de> - 2020-01-29 13:43 +0100
    Re: make: Multiple targets created by single rule vs parallel make David Brown <david.brown@hesbynett.no> - 2020-01-29 14:03 +0100
  Re: make: Multiple targets created by single rule vs parallel make Härra Ramob <hrramob@gmail.com> - 2022-01-05 00:27 -0800

csiph-web