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 else mentioned it,
and the topic wandered off. What is the behavior when you add ".PHONY:
default PROGRAM_NAME Program_Name program_name"?

On Thu, Aug 2, 2018 at 12:14 PM, Paul Smith <psm...@gnu.org> wrote:

> On Thu, 2018-08-02 at 20:56 +0200, Gisle Vanem wrote:
> > But I made a little <dmalloc.h> implementation using MSVC's
> > <CrtDbg.h> 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 Valgrind on GNU/Linux
> before each release and take a look at the results.  There are always
> some few issues around argument parsing, IIRC, but nothing major.  I
> haven't done this on Git master HEAD for a while I admit (I don't know
> what version of GNU make you're using).
>
> There may be leaks that the regression suite doesn't catch.  Also, that
> process wouldn't catch leaks that appear in non-GNU/Linux-specific
> code.
>
> _______________________________________________
> Bug-make mailing list
> Bug-make@gnu.org
> https://lists.gnu.org/mailman/listinfo/bug-make
>
_______________________________________________
Bug-make mailing list
Bug-make@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-make

Reply via email to