On Sun, Nov 12, 2023 at 1:14 PM Daniel Sahlberg <daniel.l.sahlb...@gmail.com>
wrote:

>
>
> sön 12 nov. 2023 kl. 19:02 skrev Nathan Hartman <hartman.nat...@gmail.com
> >:
>
>> In my adventures with tools/dev/unix-build/Makefile.svn, I saw two places
>> that call '-which', that is, 'which' preceded by a dash.
>>
>> One of these is in the recipe for gettext's configure. It was changed
>> from 'which' to '-which' in r1577186.
>>
>> I'm not familiar with this. What does '-which' do, and how is it
>> different from 'which'?
>>
>
> Maybe it is just a make-ism to ignore errors? See the gnu make manual at
> [1]:
> “To ignore errors in a recipe line, write a ‘-’ at the beginning of the
> line’s text (after the initial tab). The ‘-’ is discarded before the line
> is passed to the shell for execution.”
>
> Kind regards
> Daniel
>
>
> [1] https://www.gnu.org/software/make/manual/html_node/Errors.html
>


Ah, that's it! Evidently I was flustered from the other issues and missed
that.

Thanks!

Nathan

<https://www.gnu.org/software/make/manual/html_node/Errors.html>
>

Reply via email to