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

From: Peter Johansson <[email-masked]>
Date: Fri, 20 Nov 2015 09:23:42 +1000

On 11/19/2015 06:19 PM, Joakim Tjernlund wrote:
> hmm, I see the problem.
>
> How do I change Makefile.am, with minimal effort as we have alot of them?
> Tried
>    bin_PROGRAMS += emxp_hw_bl/emxp_hw_bl
> but that gives me:
> ne/emxp_ss/emxp_hw_bl/Makefile.inc:14: warning: variable 'emxp_hw_bl_SOURCES' is defined but no program or
> ne/emxp_ss/emxp_hw_bl/Makefile.inc:14: library has 'emxp_hw_bl' as canonical name (possible typo)
> ne/emxp_ss/Makefile.am:15:   'ne/emxp_ss/emxp_hw_bl/Makefile.inc' included from here
> ne/emxp_ss/emxp_hw_bl/Makefile.inc:1: warning: variable 'emxp_hw_bl_LDADD' is defined but no program or
> ne/emxp_ss/emxp_hw_bl/Makefile.inc:1: library has 'emxp_hw_bl' as canonical name (possible typo)
> ne/emxp_ss/Makefile.am:15:   'ne/emxp_ss/emxp_hw_bl/Makefile.inc' included from here
> ne/emxp_ss/emxp_hw_bl/Makefile.inc:2: warning: variable 'emxp_hw_bl_common_LDADD' is defined but no program or
> ne/emxp_ss/emxp_hw_bl/Makefile.inc:2: library has 'emxp_hw_bl_common' as canonical name (possible typo)
> ne/emxp_ss/Makefile.am:15:   'ne/emxp_ss/emxp_hw_bl/Makefile.inc' included from here
It looks like you haven't changed variable names e.g. 
'emxp_hw_bl_SOURCES' to 'emxp_hw_bl/emxp_hw_bl_SOURCES'.

Cheers,
Peter