[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Idea: Standard way to negate special targets

From: Paul Smith
Subject: Re: Idea: Standard way to negate special targets
Date: Wed, 12 Jun 2019 09:43:26 -0400

On Tue, 2019-06-11 at 16:25 -0400, David A. Wheeler wrote:
> Add a syntax to *disable* a special target for
> a particular rule.  I propose that it be
> a whitespace-surrounded "!" in the prerequisites
> followed by the special target being disabled. E.g.:
> ~~~~
> tricky_target: ! .ONESHELL prerequisite

The thing I don't like about this is it's not clear where the "!"
applies.  Does it apply to just the next prereq?  One assumes, but the
syntax is not clear.  What if you have:

  tricky_target: ! .ONESHELL .PHONY prerequisite

... ?

What about modifying the target name itself, like:

  tricky_target: .!ONESHELL .PHONY ...

I can't decide if that's better or worse.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]