Subject: bug#21956: subdir-objecs dies with "rm: cannot remove 'emxp_cm_bl': Is a directory", even git version

From: Peter Johansson <[email-masked]>
Date: Thu, 19 Nov 2015 15:54:58 +1000

Hi Joakim,

On 11/19/2015 11:15 AM, Joakim Tjernlund wrote:
> automake>= 1.13 (did not test lower than that) dies during make with:
>   CCLD     emxp_cm_bl_shell
>   rm: cannot remove 'emxp_cm_bl': Is a directory
>   Makefile:1070: recipe for target 'emxp_cm_bl' failed
>
> This happens if you have the same name on the containing directory and
> in bin_PROGRAMS, like so
>    bin_PROGRAMS = emxp_hw_bl

You try to create a program named 'emxp_hw_bl'.

>    emxp_hw_bl_SOURCES = emxp_hw_bl/emxp_hw_bl.c

But that name is already taken by the directory (in which the source 
files resides).

If you think this is a bug, what do you think is the preferable behaviour?

Cheers,
Peter