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


Groups > comp.programming > #10567

Re: make: Multiple targets created by single rule vs parallel make

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

Show all headers | View raw


Am 23.01.20 um 15:00 schrieb Philipp Klaus Krause:
> 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
> 

As can be seen in

https://savannah.gnu.org/bugs/?57692

the mistake was on my side, assuming that grouped targets were supported
by GNU mmake 4.2.1. The syntax for grouped targets actually is also
valid make syntax for older versions of make, but has different
semantics there.

Back to comp.programming | Previous | Next — Previous in thread | 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