🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.unix.programmer
Article #3759

Re: GNU Make question - how to write a rule for such a situation

#3759
From: Gupit
Date: Fri, 01 Feb 2002 18:44
21 lines
1762 bytes
Eli Zaretskii <eliz@is.elta.co.il> wrote in message news:<3C5A3FE4.6AEF7129@is.elta.co.il>...
> Gupit wrote:
> > 
> > If I write
> > 
> > $(trace_files): command.rc
> >          genTrace -options
> > 
> > make -j will fire off genTrace for each of the .trace file. This is
> > not what I want.
> 
> Is the parallelism the only problem with this solution, or are there other
> problems?  If parallel execution is the only issue, why not force Make to
> not fire parallel jobs?

I do want to use parallelism in the other parts of the Makefile. I
could get around by making it a recursive make target and specifying
j=0 or something. But does that mean there isnt a elegant solution to
this type of target-dependency problem in GNU make?
Thanks,
Gupit
Technical Details
Message-ID: <1ea0ec40.0202011044.6d3b6ade@posting.google.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!postnews1.google.com!not-for-mail
References: <1ea0ec40.0201311229.2efb8898@posting.google.com> <3C5A3FE4.6AEF7129@is.elta.co.il>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 109f73,890189702c9e654b
X-Google-Attributes: gid109f73,public
X-Google-Thread: fc89c,890189702c9e654b
X-Google-Attributes: gidfc89c,public
X-Google-ArrivalTime: 2002-02-01 10:44:06 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!postnews1.google.com!not-for-mail
From: gupit@yahoo.com (Gupit)
Newsgroups: comp.unix.programmer,gnu.utils.help
Subject: Re: GNU Make question - how to write a rule for such a situation
Date: 1 Feb 2002 10:44:05 -0800
Organization: http://groups.google.com/
Lines: 21
Message-ID: <1ea0ec40.0202011044.6d3b6ade@posting.google.com>
References: <1ea0ec40.0201311229.2efb8898@posting.google.com> <3C5A3FE4.6AEF7129@is.elta.co.il>
NNTP-Posting-Host: 209.213.198.25
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: posting.google.com 1012589046 7374 127.0.0.1 (1 Feb 2002 18:44:06 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: 1 Feb 2002 18:44:06 GMT