git-svn-id: https://svn.osgeo.org/grass/grass/trunk@49930 15284696-431f-4ddb-bdfa-cd5b030d7da7
@@ -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;
@@ -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) $@
-PGM = r.watershed.seg
+PGM = r.watershed/seg
LIBES = $(SEGMENTLIB) $(RASTERLIB) $(GISLIB) $(MATHLIB)
DEPENDENCIES = $(SEGMENTDEP) $(RASTERDEP) $(GISDEP)
@@ -8,5 +9,7 @@ DEPENDENCIES = $(SEGMENTDEP) $(RASTERDEP) $(GISDEP)