make realclean does clean twice

Bernhard Fischer at
Wed Jun 11 08:16:25 UTC 2008

On Wed, Jun 11, 2008 at 09:39:39AM +0200, Carmelo AMOROSO wrote:
> Hi,
> I've seen that *.dep will be removed with 'realclean' target,
> but when running it I've seen that make tries to clean files twice
> as in the attached log.

I'm aware of this cosmetic issue, yes.

>rm -f ./ldso/ldso/*.{o,os,oS,a} ./ldso/ldso/*/*.{o,os,oS}

The *clean targets also want to be adjusted not to use sh glob (which
may not work with all shells) but either explicitely
$(RM) $(patsubst the/dir/,*.o *.os *.oS *.a) or just use $(wildcard).

Please feel free to look into the realclean glitch and the sh pattern

More information about the uClibc mailing list