[GRASS5] Re: [GRASSLIST:6277] Re: v.in.ogr error

Glynn Clements glynn at gclements.plus.com
Sat Apr 2 20:15:19 EST 2005


Hamish wrote:

> > it has been demonstrated recently that running 'make -j 3' on a
> > multi-processor computer causes some of the help pages to not build
> > properly.
> 
> [as well as some C libs/modules]
> 
> perhaps some targeted use of the "wait" shell command is called for in
> the build scripts?

The reason for parallel make failing to build the help pages is that
the executable isn't listed as a dependency of the htmlcmd target, so
make may attempt to build the HTML files before the executable has
been built.

With the rule:

	cmd: $(BIN)/$(PGM) htmlcmd

you can't assume that the two dependencies will be built sequentially;
a parallel make will try to build them in parallel. The htmlcmd target
needs to have the program listed as an explicit dependency, e.g.:

	htmlcmd: $(BIN)/$(PGM)

-- 
Glynn Clements <glynn at gclements.plus.com>




More information about the grass-dev mailing list