Re: New feature: Post-requisites

2022-07-31 Thread Alejandro Colomar (man-pages)
Hi Paul On 7/31/22 14:36, Paul Smith wrote: On Sun, 2022-07-31 at 11:45 +0200, Alejandro Colomar (man-pages) wrote: If some new post-requisite "baz" was found while building either "foo" or "bar", it would be built after those and be as if the user had invoked "make foo bar baz". What if one

Re: New feature: Post-requisites

2022-07-31 Thread Paul Smith
On Sun, 2022-07-31 at 11:45 +0200, Alejandro Colomar (man-pages) wrote: > > If some new post-requisite "baz" was found while building either > > "foo" or "bar", it would be built after those and be as if the user > > had invoked "make foo bar baz". > > What if one runs `make -j foo foo2` and both

Re: New feature: Post-requisites

2022-07-31 Thread Alejandro Colomar (man-pages)
Hi Paul On 7/30/22 19:01, Paul Smith wrote: On Mon, 2022-07-25 at 09:06 +, Edward Welbourne wrote: On 7/22/22 16:20, Paul Smith wrote: So, after all the "normal" goal targets were completed make would proceed to run any "extra" goal targets that were added as part of the processing of the

Re: New feature: Post-requisites

2022-07-30 Thread Paul Smith
On Mon, 2022-07-25 at 09:06 +, Edward Welbourne wrote: > On 7/22/22 16:20, Paul Smith wrote: > > > So, after all the "normal" goal targets were completed make would > > > proceed to run any "extra" goal targets that were added as part > > > of the processing of the "normal" goal targets.  Then

Re: New feature: Post-requisites

2022-07-25 Thread Edward Welbourne
On 7/25/22 11:06, Edward Welbourne wrote: >> Also, this new feature smells like it may open up some interesting >> corner-cases in dependency-loop analysis, although I can't think of >> any immediately. Alejandro Colomar (Monday, July 25, 2022 13:54) replied: > The same way that having dep loops r

Re: New feature: Post-requisites

2022-07-25 Thread Alejandro Colomar
Hi Edward, On 7/25/22 11:06, Edward Welbourne wrote: On 7/22/22 16:20, Paul Smith wrote: So, after all the "normal" goal targets were completed make would proceed to run any "extra" goal targets that were added as part of the processing of the "normal" goal targets.  Then after the those "extra

Re: New feature: Post-requisites

2022-07-25 Thread Edward Welbourne
On 7/22/22 16:20, Paul Smith wrote: >> So, after all the "normal" goal targets were completed make would >> proceed to run any "extra" goal targets that were added as part of >> the processing of the "normal" goal targets.  Then after the those >> "extra" goal targets were complete, make would proc

Re: New feature: Post-requisites

2022-07-22 Thread Alejandro Colomar
Hi Paul, On 7/22/22 16:20, Paul Smith wrote: On Fri, 2022-07-22 at 14:05 +0200, Alejandro Colomar wrote: As the word suggests, as pre-requisites are satisfied before a given target, post-requisites would be satisfied _after_ a given target. The way I can see this being implemented without a v

Re: New feature: Post-requisites

2022-07-22 Thread Dmitry Goncharov
On Fri, Jul 22, 2022 at 9:34 AM wrote: > In your example, wouldn't the following accomplish the same thing? > > > update-mandb: $(DESTDIR)$(man3dir)/foo.3 $(DESTDIR)$(man3dir)/bar.3 i'd also be interested in the answer. Either this traditional syntax specified above, or $(DESTDIR)$(man3dir)/bar

Re: New feature: Post-requisites

2022-07-22 Thread Paul Smith
On Fri, 2022-07-22 at 14:05 +0200, Alejandro Colomar wrote: > As the word suggests, as pre-requisites are satisfied before a given > target, post-requisites would be satisfied _after_ a given target. The way I can see this being implemented without a very significant amount of work, would be for

Re: New feature: Post-requisites

2022-07-22 Thread Edward Welbourne
th...@vmware.com (22 July 2022 15:28) wrote: > In your example, wouldn't the following accomplish the same thing? > > update-mandb: $(DESTDIR)$(man3dir)/foo.3 $(DESTDIR)$(man3dir)/bar.3 I presume that'd have a rule that runs mandb. And it works as long as you're happy to update all man pages whe

Re: New feature: Post-requisites

2022-07-22 Thread Alejandro Colomar
Hi Edward, thutt, On 7/22/22 15:36, Edward Welbourne wrote: Alejandro Colomar (Friday, July 22, 2022 14:05) > I'd like to suggest a new feature: post-requisites. > > As the word suggests, as pre-requisites are satisfied before a given > target, post-requisites would be sa

Re: New feature: Post-requisites

2022-07-22 Thread Edward Welbourne
Alejandro Colomar (Friday, July 22, 2022 14:05) > I'd like to suggest a new feature: post-requisites. > > As the word suggests, as pre-requisites are satisfied before a given > target, post-requisites would be satisfied _after_ a given target. and just as a prerequisite can be

New feature: Post-requisites

2022-07-22 Thread thutt
Alejandro Colomar writes: > Hi, > > I'd like to suggest a new feature: post-requisites. > > As the word suggests, as pre-requisites are satisfied before a given > target, post-requisites would be satisfied _after_ a given target. > > Why would someone ever need

New feature: Post-requisites

2022-07-22 Thread Alejandro Colomar
Hi, I'd like to suggest a new feature: post-requisites. As the word suggests, as pre-requisites are satisfied before a given target, post-requisites would be satisfied _after_ a given target. Why would someone ever need that in a Makefile: In an install target for a library, you may wa