Procházet zdrojové kódy

move r.watershed's ram and seg programs to etc/r.watershed

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@49930 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa před 13 roky
rodič
revize
c217391fee

+ 1 - 1
raster/r.watershed/front/main.c

@@ -260,7 +260,7 @@ int main(int argc, char *argv[])
     }
 
     /* Build command line */
-    sprintf(command, "%s/etc/r.watershed.%s",
+    sprintf(command, "%s/etc/r.watershed/%s",
 	    G_gisbase(),
 	    flag_seg->answer ? "seg" : "ram");
     new_argv[new_argc++] = command;

+ 6 - 2
raster/r.watershed/ram/Makefile

@@ -1,6 +1,7 @@
 MODULE_TOPDIR = ../../..
 
-PGM = r.watershed.ram
+PGM = r.watershed/ram
+DIR = $(ETC)/r.watershed
 
 LIBES = $(RASTERLIB) $(GISLIB) $(MATHLIB) $(BTREE2LIB)
 DEPENDENCIES = $(RASTERDEP) $(GISDEP)
@@ -8,4 +9,7 @@ DEPENDENCIES = $(RASTERDEP) $(GISDEP)
 include $(MODULE_TOPDIR)/include/Make/Etc.make
 include $(MODULE_TOPDIR)/include/Make/NoHtml.make
 
-default: etc 
+default: $(DIR) etc
+
+$(DIR):
+	$(MKDIR) $@

+ 5 - 2
raster/r.watershed/seg/Makefile

@@ -1,6 +1,7 @@
 MODULE_TOPDIR = ../../..
 
-PGM = r.watershed.seg
+PGM = r.watershed/seg
+DIR = $(ETC)/r.watershed
 
 LIBES = $(SEGMENTLIB) $(RASTERLIB) $(GISLIB) $(MATHLIB)
 DEPENDENCIES = $(SEGMENTDEP) $(RASTERDEP) $(GISDEP)
@@ -8,5 +9,7 @@ DEPENDENCIES = $(SEGMENTDEP) $(RASTERDEP) $(GISDEP)
 include $(MODULE_TOPDIR)/include/Make/Etc.make
 include $(MODULE_TOPDIR)/include/Make/NoHtml.make
 
-default: etc
+default: $(DIR) etc
 
+$(DIR):
+	$(MKDIR) $@