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

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

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

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 satisfied _after_ a

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 built at any time

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 that in a Makefile: > > In

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 want to