bug-make
[Top][All Lists]
Advanced

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

Re: Case-insensitive targets


From: Eli Zaretskii
Subject: Re: Case-insensitive targets
Date: Fri, 03 Aug 2018 09:34:58 +0300

> From: David Boyce <address@hidden>
> Date: Thu, 2 Aug 2018 17:52:27 -0700
> Cc: bug-make <address@hidden>
> 
> default: program_name
> 
> PROGRAM_NAME Program_Name program_name:
>         @echo 'Do something for address@hidden'
> 
> -----
> 
> The thing is that these targets are not actually declared as phony so of 
> course they're treated as files. I'm
> surprised no one else mentioned it, and the topic wandered off. What is the 
> behavior when you add ".PHONY:
> default PROGRAM_NAME Program_Name program_name"?

My Make is built without HAVE_CASE_INSENSITIVE_FS, so I cannot answer
the question about the behavior.  The original example doesn't produce
any warnings for me.

In general, I'd expect PHONY targets to be case-sensitive, because
they don't exist as files, and so down-casing of file names doesn't
affect them.



reply via email to

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