[GRASS-SVN] r54150 - grass/trunk/include/Make
svn_grass at osgeo.org
svn_grass at osgeo.org
Mon Dec 3 01:49:18 PST 2012
Author: martinl
Date: 2012-12-03 01:49:17 -0800 (Mon, 03 Dec 2012)
New Revision: 54150
Added:
grass/trunk/include/Make/GuiScript.make
Log:
GuiScript.make added
Added: grass/trunk/include/Make/GuiScript.make
===================================================================
--- grass/trunk/include/Make/GuiScript.make (rev 0)
+++ grass/trunk/include/Make/GuiScript.make 2012-12-03 09:49:17 UTC (rev 54150)
@@ -0,0 +1,37 @@
+
+# common dependencies and rules for building GUI module
+
+include $(MODULE_TOPDIR)/include/Make/Vars.make
+include $(MODULE_TOPDIR)/include/Make/Rules.make
+include $(MODULE_TOPDIR)/include/Make/ScriptRules.make
+
+MODULES := $(patsubst g.gui.%.py,%,$(wildcard g.gui.*.py))
+CMDHTML := $(patsubst %,$(HTMLDIR)/g.gui.%.html,$(MODULES))
+GUIHTML := $(patsubst %,$(HTMLDIR)/wxGUI.%.html,$(MODULES))
+PYFILES := $(patsubst %,$(SCRIPTDIR)/g.gui.%,$(MODULES))
+
+IMGSRC := $(wildcard *.png) $(wildcard *.jpg)
+IMGDST := $(patsubst %,$(HTMLDIR)/%,$(IMGSRC))
+
+htmldesc = $(call run_grass,$(1) --html-description < /dev/null | grep -v '</body>\|</html>' > $(2))
+
+guiscript: $(CMDHTML) $(GUIHTML) $(IMGDST) $(PYFILES)
+
+$(HTMLDIR)/g.gui.%.html: g.gui.%.html g.gui.%.tmp.html | $(HTMLDIR)
+ $(PYTHON) $(GISBASE)/tools/mkhtml.py g.gui.$* $(GRASS_VERSION_DATE) > $@
+
+$(HTMLDIR)/wxGUI.%.html: g.gui.%.html | $(HTMLDIR)
+ -rm -f g.gui.$*.tmp.html
+ $(PYTHON) $(GISBASE)/tools/mkhtml.py g.gui.$* $(GRASS_VERSION_DATE) > $@
+
+g.gui.%.tmp.html: $(SCRIPTDIR)/g.gui.%
+ $(call htmldesc,$<,$@)
+
+$(SCRIPTDIR)/g.gui.%: g.gui.%.py | $(SCRIPTDIR)
+ $(INSTALL) $< $@
+
+$(HTMLDIR)/%.png: %.png | $(HTMLDIR)
+ $(INSTALL_DATA) $< $@
+
+$(HTMLDIR)/%.jpg: %.jpg | $(HTMLDIR)
+ $(INSTALL_DATA) $< $@
Property changes on: grass/trunk/include/Make/GuiScript.make
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Added: svn:keywords
+ Author Date Id
Added: svn:eol-style
+ native
More information about the grass-commit
mailing list