[prev in list] [next in list] [prev in thread] [next in thread] 

List:       grass-commit
Subject:    [GRASS-SVN] r54449 - grass/trunk/include/Make
From:       svn_grass () osgeo ! org
Date:       2012-12-28 17:06:14
Message-ID: 20121228170615.079D3390602 () trac ! osgeo ! org
[Download RAW message or body]

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

_______________________________________________
grass-commit mailing list
grass-commit@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-commit
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic