[GRASS-SVN] r64553 - grass/branches/releasebranch_7_0/include/Make

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Feb 11 02:06:18 PST 2015


Author: martinl
Date: 2015-02-11 02:06:18 -0800 (Wed, 11 Feb 2015)
New Revision: 64553

Modified:
   grass/branches/releasebranch_7_0/include/Make/Module.make
Log:
(bugfix) fix Module.make to install addons (images, etc)
         (merge r64550 from trunk)


Modified: grass/branches/releasebranch_7_0/include/Make/Module.make
===================================================================
--- grass/branches/releasebranch_7_0/include/Make/Module.make	2015-02-11 09:54:20 UTC (rev 64552)
+++ grass/branches/releasebranch_7_0/include/Make/Module.make	2015-02-11 10:06:18 UTC (rev 64553)
@@ -18,6 +18,13 @@
 install:
 	$(INSTALL) $(ARCH_DISTDIR)/bin/$(PGM)$(EXE) $(INST_DIR)/bin/
 	$(INSTALL_DATA) $(HTMLDIR)/$(PGM).html $(INST_DIR)/docs/html/
+	$(eval IMG := $(wildcard $(HTMLDIR)/*.png) $(wildcard $(HTMLDIR)/*.jpg))
+	if [ -n "$(IMG)" ] ; then \
+		$(INSTALL_DATA) $(IMG)  $(INST_DIR)/docs/html/ ; \
+	fi
 	$(INSTALL_DATA) $(ARCH_DISTDIR)/docs/man/man1/$(PGM).1 $(INST_DIR)/docs/man/man1/
+	if [ -d "$(ETC)/$(PGM)" ] ; then \
+		cp -rL $(ETC)/$(PGM) $(INST_DIR)/etc/ ; \
+	fi
 
 .PHONY: cmd



More information about the grass-commit mailing list