Re: make(1) and multiple outputs

2018-09-04 Thread Philip Guenther
On Tue, Sep 4, 2018 at 12:43 AM Marc Espie wrote: > On Mon, Sep 03, 2018 at 12:14:45PM -0900, Philip Guenther wrote: > ... > > Does our make have some logic in the -jN handling to detect and prevent > > that, Marc? > > Philip, is that a rhetorical question ? > Heh, no. Just the question of som

Re: make(1) and multiple outputs

2018-09-04 Thread Marc Espie
On Mon, Sep 03, 2018 at 12:14:45PM -0900, Philip Guenther wrote: > On Mon, Sep 3, 2018 at 5:23 AM Marc Espie wrote: > > > Our make is perfectly happy generating several targets with one rule. > > > > The only thing we're actually missing wrt % is suffixes rules with > > multiple results. > > > >

Re: make(1) and multiple outputs

2018-09-03 Thread Philip Guenther
On Mon, Sep 3, 2018 at 5:23 AM Marc Espie wrote: > Our make is perfectly happy generating several targets with one rule. > > The only thing we're actually missing wrt % is suffixes rules with > multiple results. > > See any Makefile that generates .h and .c file from .y, for instance > lib/libkey

Re: make(1) and multiple outputs

2018-09-03 Thread Marc Espie
On Fri, Aug 31, 2018 at 09:23:33AM +0200, Kristaps Dzonsons wrote: > Short: is there a way to manage multiple outputs from a single command > with OpenBSD's make(1)? > > Longer story. I have a site that generates a few hundred articles using > sblg(1). Each output article is indexNNN.html, which

Re: make(1) and multiple outputs

2018-09-01 Thread gwes
On 08/31/18 03:23, Kristaps Dzonsons wrote: Short: is there a way to manage multiple outputs from a single command with OpenBSD's make(1)? Longer story. I have a site that generates a few hundred articles using sblg(1). Each output article is indexNNN.html, which depends upon every input in

Re: make(1) and multiple outputs

2018-09-01 Thread Ingo Schwarze
Hi Kristaps, Kristaps Dzonsons BSD.LV wrote on Fri, Aug 31, 2018 at 09:23:33AM +0200: > Short: is there a way to manage multiple outputs from a single command > with OpenBSD's make(1)? > > Longer story. I have a site that generates a few hundred articles using > sblg(1). Each output article is

make(1) and multiple outputs

2018-08-31 Thread Kristaps Dzonsons
Short: is there a way to manage multiple outputs from a single command with OpenBSD's make(1)? Longer story. I have a site that generates a few hundred articles using sblg(1). Each output article is indexNNN.html, which depends upon every input indexNNN.xml. So a change to any indexNNN.xml must