[GRASS-dev] Standalone GUI modules: Makefile

Glynn Clements glynn at gclements.plus.com
Wed Dec 5 09:21:11 PST 2012


Martin Landa wrote:

> >> If there isn't, the common definitions (htmldesc, IMGSRC, IMGDST) and
> >> pattern rules ($(HTMLDIR)/%.png, $(HTMLDIR)/%.jpg) should be moved to
> >> a separate file which can then be included from both Html.make and
> >> GuiScript.make.
> >
> > seems to be an option. Martin
> 
> OK, done r54199. Martin

Note that the current approach is incompatible with parallel builds.

If g.gui.%.html and wxGUI.%.html are built concurrently, the latter
may try to delete the g.gui.%.tmp.html file while the former is using
it.

One solution is to modify mkhtml.py to allow the inclusion of the
.tmp.html file to be suppressed. Another is to explicitly order the
builds, e.g.:

	guiscript: $(IMGDST) $(PYFILES)
		$(MAKE) $(CMDHTML)
		-rm -f g.gui.*.tmp.html
		$(MAKE) $(GUIHTML)

	.PHONY: guiscript

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


More information about the grass-dev mailing list