Re: Making makefiles with primarily phony targets more friendly

2022-08-12 Thread Edward Welbourne
On Wed, 2022-08-10 at 19:08 +, Katherine Pata wrote: >> Something like --reverse-phony or a variable like .GENUINE or .REAL >> that is mutually exclusive with .PHONY would be really helpful. Paul Smith (11 August 2022 21:49) replied: > Adding such a command-line option is not right, ... [snip]

Re: Making makefiles with primarily phony targets more friendly

2022-08-11 Thread Paul Smith
On Wed, 2022-08-10 at 19:08 +, Katherine Pata wrote: > I often find myself using makefiles to handle things like project > linting, container images, various scripts, initiating tests, and > other misc tasks. Sometimes these include tasks that have real > dependencies that make should keep trac

Re: Making makefiles with primarily phony targets more friendly

2022-08-11 Thread Edward Welbourne
Jean-Baptiste Poittevin (10 August 2022 22:19) wrote: > By using a lot of PHONY targets, I think you're closing a door to one > make greatest feature : not redoing those things that are already up > to date. While that's entirely true of make's "design-basis" use-case, I am familiar with the mostl

Re: Making makefiles with primarily phony targets more friendly

2022-08-10 Thread Alejandro Colomar
Hi, On 8/10/22 22:19, Jean-Baptiste Poittevin wrote: By using a lot of PHONY targets, I think you're closing a door to one make greatest feature : not redoing those things that are already up to date. If you consider that every rule can generate a useful file (file containing container image

Re: Making makefiles with primarily phony targets more friendly

2022-08-10 Thread Britton Kerin
On Wed, Aug 10, 2022 at 12:33 PM Jean-Baptiste Poittevin wrote: > > By using a lot of PHONY targets, I think you're closing a door to one make > greatest feature : not redoing those things that are already up to date. > > If you consider that every rule can generate a useful file (file containing

Re: Making makefiles with primarily phony targets more friendly

2022-08-10 Thread Jean-Baptiste Poittevin
By using a lot of PHONY targets, I think you're closing a door to one make greatest feature : not redoing those things that are already up to date. If you consider that every rule can generate a useful file (file containing container image for example) or a dummy file, you can benefit from the d

Fwd: Making makefiles with primarily phony targets more friendly

2022-08-10 Thread Britton Kerin
-- Forwarded message - From: Britton Kerin Date: Wed, Aug 10, 2022, 11:58 AM Subject: Re: Making makefiles with primarily phony targets more friendly To: Katherine Pata On Wed, Aug 10, 2022, 11:44 AM Katherine Pata wrote: > I often find myself using makefiles to han

Making makefiles with primarily phony targets more friendly

2022-08-10 Thread Katherine Pata
I often find myself using makefiles to handle things like project linting, container images, various scripts, initiating tests, and other misc tasks. Sometimes these include tasks that have real dependencies that make should keep track of, but often the vast majority of targets are phony. Somet