[GRASS-SVN] r54412 - grass-addons/grass7/raster/r.modis/libmodis

svn_grass at osgeo.org svn_grass at osgeo.org
Thu Dec 27 04:43:17 PST 2012


Author: lucadelu
Date: 2012-12-27 04:43:16 -0800 (Thu, 27 Dec 2012)
New Revision: 54412

Modified:
   grass-addons/grass7/raster/r.modis/libmodis/Makefile
Log:
r.modis: fix makefile

Modified: grass-addons/grass7/raster/r.modis/libmodis/Makefile
===================================================================
--- grass-addons/grass7/raster/r.modis/libmodis/Makefile	2012-12-27 10:12:03 UTC (rev 54411)
+++ grass-addons/grass7/raster/r.modis/libmodis/Makefile	2012-12-27 12:43:16 UTC (rev 54412)
@@ -5,16 +5,18 @@
 
 MODULES = downmodis rmodislib convertmodis parsemodis
 
-PYFILES := $(patsubst %,$(ETC)/%.py,$(MODULES))
-PYCFILES := $(patsubst %,$(ETC)/%.pyc,$(MODULES))
+ETCDIR = $(ETC)/r.modis
 
+PYFILES := $(patsubst %,$(ETCDIR)/%.py,$(MODULES))
+PYCFILES := $(patsubst %,$(ETCDIR)/%.pyc,$(MODULES))
+
 default: $(PYFILES) $(PYCFILES)
 
-$(DSTDIR):
+$(ETCDIR):
 	$(MKDIR) $@
 
-$(ETC)/%: % | $(ETC)
+$(ETCDIR)/%: % | $(ETCDIR)
 	$(INSTALL_DATA) $< $@
 
 install:
-	cp -r $(ETC) $(INST_DIR)
+	cp -r $(ETCDIR) $(INST_DIR)



More information about the grass-commit mailing list