🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.unix.programmer
Article #3760

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

#3760
From: Eli Zaretskii
Date: Fri, 01 Feb 2002 19:27
19 lines
1831 bytes
Gupit wrote:
> 
> > 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.

You could either make this target invoke a recursive Make that is not
parallel, or make this target be a prerequisite of a special target
.NOTPARALLEL.

> But does that mean there isnt a elegant solution to
> this type of target-dependency problem in GNU make?

I don't think these solutions aren't elegant, and I don't know about any
more elegant ones.
Technical Details
Message-ID: <3C5AEC1C.F25E9208@is.elta.co.il>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!fu-berlin.de!uni-berlin.de!192.116.55.139!not-for-mail
References: <1ea0ec40.0201311229.2efb8898@posting.google.com> <3C5A3FE4.6AEF7129@is.elta.co.il> <1ea0ec40.0202011044.6d3b6ade@posting.google.com>

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 11:28:20 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!fu-berlin.de!uni-berlin.de!192.116.55.139!not-for-mail
From: Eli Zaretskii <eliz@is.elta.co.il>
Newsgroups: comp.unix.programmer,gnu.utils.help
Subject: Re: GNU Make question - how to write a rule for such a situation
Date: Fri, 01 Feb 2002 21:27:24 +0200
Lines: 19
Message-ID: <3C5AEC1C.F25E9208@is.elta.co.il>
References: <1ea0ec40.0201311229.2efb8898@posting.google.com> <3C5A3FE4.6AEF7129@is.elta.co.il> <1ea0ec40.0202011044.6d3b6ade@posting.google.com>
NNTP-Posting-Host: 192.116.55.139
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Trace: fu-berlin.de 1012591698 41924722 192.116.55.139 (16 [61365])
X-Mailer: Mozilla 4.7 [en] (Win98; I)
X-Accept-Language: en