[GRASS-SVN] r65201 - grass/trunk/include/Make

svn_grass at osgeo.org svn_grass at osgeo.org
Sat May 9 11:17:06 PDT 2015


Author: martinl
Date: 2015-05-09 11:17:06 -0700 (Sat, 09 May 2015)
New Revision: 65201

Modified:
   grass/trunk/include/Make/Module.make
Log:
Module.make: add rule for ETCFILES


Modified: grass/trunk/include/Make/Module.make
===================================================================
--- grass/trunk/include/Make/Module.make	2015-05-09 03:31:24 UTC (rev 65200)
+++ grass/trunk/include/Make/Module.make	2015-05-09 18:17:06 UTC (rev 65201)
@@ -10,11 +10,19 @@
 include $(MODULE_TOPDIR)/include/Make/Html.make
 include $(MODULE_TOPDIR)/include/Make/Compile.make
 
-cmd: $(BIN)/$(PGM)$(EXE) html
+ETCFILES_DST := $(patsubst %,$(ETC)/$(PGM)/%,$(ETCFILES))
 
+cmd: $(BIN)/$(PGM)$(EXE) $(ETCFILES_DST) html
+
 $(BIN)/$(PGM)$(EXE): $(ARCH_OBJS) $(DEPENDENCIES)
 	$(call linker)
 
+$(ETC)/$(PGM)/%: % | $(ETC)/$(PGM)
+	$(INSTALL_DATA) $< $@
+
+$(ETC)/$(PGM):
+	$(MKDIR) $@
+
 install:
 	$(INSTALL) $(ARCH_DISTDIR)/bin/$(PGM)$(EXE) $(INST_DIR)/bin/
 	$(INSTALL_DATA) $(HTMLDIR)/$(PGM).html $(INST_DIR)/docs/html/



More information about the grass-commit mailing list