[distcc] Re: help ...

Benoit Poulot-Cazajous Benoit.Poulot-Cazajous at Jaluna.com
Thu Mar 10 15:06:57 GMT 2005


"jbkim" <jbkim at blisscom.co.kr> writes:

> ==> Following is Source Code of the Makefile.
> 
> ################################################################################
> #-------------------------------------------------------------------------------
> # Object directory target
> #-------------------------------------------------------------------------------
> 
> # The object subdirectoy is created if it does not already exist.
> 
> $(TARGETDIR)/exist :
>  @if test ! -f $(TARGETDIR)/exist; then mkdir $(TARGETDIR); fi
>  @echo Building $(TARGETDIR) > $(TARGETDIR)/exist
> ################################################################################

Try this instead :
$(TARGETDIR)/exist :
        @mkdir -p $(TARGETDIR)
        @echo Building $(TARGETDIR) > $(TARGETDIR)/exist
It should work better if multiple instances of make are trying to
create the same directory in parallel.

BTW, this is really off-topic...

  -- Benoit



More information about the distcc mailing list