[distcc] make -j option ...

Martin Pool mbp at sourcefrog.net
Thu Mar 10 01:52:57 GMT 2005


jbkim wrote:
> i found error of make -j option.
> 
> it is very serious .
> 
> with -j1 very well  working create directory command(cp command)  in 
> Makefile.
> 
> but -j2 , -j3, -j4......is not working
> 
> i don't know that .

If you are trying to create a directory from your makefile, then you 
need to make sure that commands which rely on the creation do not run 
until the directory exists.  You can do this by inserting appropriate 
dependencies in the makefile.

example:

make-output:
         mkdir -p outdir

copy-foo: make-output
        cp foo outdir

copy-bar: make-output
        cp bar outdir

-- 
Martin


More information about the distcc mailing list