[GRASS-SVN] r60887 - grass-addons/grass7/imagery/i.segment.hierarchical

svn_grass at osgeo.org svn_grass at osgeo.org
Fri Jun 20 04:55:51 PDT 2014


Author: neteler
Date: 2014-06-20 04:55:51 -0700 (Fri, 20 Jun 2014)
New Revision: 60887

Modified:
   grass-addons/grass7/imagery/i.segment.hierarchical/Makefile
Log:
i.segment.hierarchical: fix Makefile

Modified: grass-addons/grass7/imagery/i.segment.hierarchical/Makefile
===================================================================
--- grass-addons/grass7/imagery/i.segment.hierarchical/Makefile	2014-06-20 11:26:45 UTC (rev 60886)
+++ grass-addons/grass7/imagery/i.segment.hierarchical/Makefile	2014-06-20 11:55:51 UTC (rev 60887)
@@ -2,9 +2,19 @@
 
 PGM = i.segment.hierarchical
 
-ETCFILES = isegpatch
-
 include $(MODULE_TOPDIR)/include/Make/Script.make
 include $(MODULE_TOPDIR)/include/Make/Python.make
 
-default: script
+MODULES = isegpatch
+
+ETCDIR = $(ETC)/i.segment.hierarchical
+
+PYFILES := $(patsubst %,$(ETCDIR)/%.py,$(MODULES))
+
+default: script $(PYFILES)
+
+$(ETCDIR):
+	$(MKDIR) $@
+
+$(ETCDIR)/%: % | $(ETCDIR)
+	$(INSTALL_DATA) $< $@



More information about the grass-commit mailing list