Re: Case-insensitive targets

2018-08-02 Thread Eli Zaretskii
> From: David Boyce > Date: Thu, 2 Aug 2018 17:52:27 -0700 > Cc: bug-make > > default: program_name > > PROGRAM_NAME Program_Name program_name: > @echo 'Do something for $@.' > > - > > The thing is that these targets are not actually declared as phony so of > course they're treat

Re: Case-insensitive targets

2018-08-02 Thread David Boyce
Going way back upstream to the original test makefile: - default: program_name PROGRAM_NAME Program_Name program_name: @echo 'Do something for $@.' - 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 el

Re: Case-insensitive targets

2018-08-02 Thread Paul Smith
On Thu, 2018-08-02 at 20:56 +0200, Gisle Vanem wrote: > But I made a little implementation using MSVC's > and dumped the leaks right before 'exit()' in > main.c's 'die()'. The simple case-insensitive-win.mak in my > 1st email shows 4410 leaks! Hm. I do run the regression test suite under Valgri

Re: Case-insensitive targets

2018-08-02 Thread Gisle Vanem
Paul Smith wrote: Then there's the question of case-preserving or not. To be case- preserving, make would have to be doing all string searches and comparisons using case-insensitive implementations which would be a lot of code churn. And we would have to care a lot more about internationalizat

Re: Case-insensitive targets

2018-08-02 Thread Eli Zaretskii
> From: Paul Smith > Cc: bug-make@gnu.org > Date: Thu, 02 Aug 2018 11:57:53 -0400 > > Then there's the question of case-preserving or not. To be case- > preserving, make would have to be doing all string searches and > comparisons using case-insensitive implementations which would be a lot > of

Re: Case-insensitive targets

2018-08-02 Thread Paul Smith
On Thu, 2018-08-02 at 16:44 +0200, Gisle Vanem wrote: > install_default_suffix_rules (void) > { >... >for (s = default_suffix_rules; *s != 0; s += 2, loop++) > { > > That assert() doesn't seems to consider Windows. It's HIGHLY likely that no one has ever tried to run in maintainer mo

Re: Case-insensitive targets

2018-08-02 Thread Eli Zaretskii
> From: Gisle Vanem > Cc: bug-make@gnu.org > Date: Thu, 2 Aug 2018 16:44:06 +0200 > >for (s = default_suffix_rules; *s != 0; s += 2, loop++) > { >struct file *f = enter_file (strcache_add (s[0])); >/* This function should run before any makefile is parsed. */ >as

Re: Case-insensitive targets

2018-08-02 Thread Gisle Vanem
Eli Zaretskii wrote: I'm not sure Make can distinguish between the two kinds. E.g., the rules for generating the "phony" target could be given later. Paul will know for sure. And anyway, wouldn't it be confusing if case-sensitivity changed depending on whether a file exists or doesn't? Than

Re: Case-insensitive targets

2018-08-02 Thread Eli Zaretskii
> From: Gisle Vanem > Date: Thu, 2 Aug 2018 14:39:30 +0200 > > I understand that real files should be treated in a case-insensitive > manner, but such "phony" targets (whatever it's called)? I'm not sure Make can distinguish between the two kinds. E.g., the rules for generating the "phony" targ

Case-insensitive targets

2018-08-02 Thread Gisle Vanem
Hello list. In a discussion with the LuaList, I got involved with how GNU-make on Windows handles all targets in a case- insensitive manner. Like in this 'case-insensitive-win.mak': - default: program_name PROGRAM_NAME Program_Name program_name: @echo 'Do something for $@.' -