[GRASS-SVN] r54449 - grass/trunk/include/Make

svn_grass at osgeo.org svn_grass at osgeo.org
Fri Dec 28 09:06:14 PST 2012


Author: martinl
Date: 2012-12-28 09:06:14 -0800 (Fri, 28 Dec 2012)
New Revision: 54449

Modified:
   grass/trunk/include/Make/Script.make
   grass/trunk/include/Make/ScriptRules.make
Log:
Script.make: added support for etc py files


Modified: grass/trunk/include/Make/Script.make
===================================================================
--- grass/trunk/include/Make/Script.make	2012-12-28 16:48:25 UTC (rev 54448)
+++ grass/trunk/include/Make/Script.make	2012-12-28 17:06:14 UTC (rev 54449)
@@ -9,11 +9,15 @@
 
 HTMLSRC = $(SCRIPT)
 
+ETCDIR = $(ETC)/$(PGM)
+ETCPYFILES := $(patsubst %,$(ETCDIR)/%.py,$(ETCFILES))
+ETCPYCFILES := $(patsubst %,$(ETCDIR)/%.pyc,$(ETCFILES))
+
 include $(MODULE_TOPDIR)/include/Make/Rules.make
 include $(MODULE_TOPDIR)/include/Make/Html.make
 include $(MODULE_TOPDIR)/include/Make/ScriptRules.make
 
-SCRIPT_ACTIONS = $(SCRIPT) html scriptstrings
+SCRIPT_ACTIONS = $(SCRIPT) $(ETCPYFILES) $(ETCPYCFILES) html scriptstrings
 
 script: $(SCRIPT_ACTIONS)
 

Modified: grass/trunk/include/Make/ScriptRules.make
===================================================================
--- grass/trunk/include/Make/ScriptRules.make	2012-12-28 16:48:25 UTC (rev 54448)
+++ grass/trunk/include/Make/ScriptRules.make	2012-12-28 17:06:14 UTC (rev 54449)
@@ -12,6 +12,12 @@
 $(SCRIPTDIR):
 	$(MKDIR) $(SCRIPTDIR)
 
+$(ETCDIR)/%: % | $(ETCDIR)
+	$(INSTALL_DATA) $< $@
+
+$(ETCDIR):
+	$(MKDIR) $(ETCDIR)
+
 # Make strings in a fake .c file so that they get picked up by the internationalizer stuff.
 # These are only the options (parser.c) type things.
 # See locale/scriptstrings/README for more information



More information about the grass-commit mailing list