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

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Feb 11 01:46:38 PST 2015


Author: martinl
Date: 2015-02-11 01:46:38 -0800 (Wed, 11 Feb 2015)
New Revision: 64550

Modified:
   grass/trunk/include/Make/Module.make
Log:
fix Module.make to install addons (images, etc)

Modified: grass/trunk/include/Make/Module.make
===================================================================
--- grass/trunk/include/Make/Module.make	2015-02-11 09:15:16 UTC (rev 64549)
+++ grass/trunk/include/Make/Module.make	2015-02-11 09:46:38 UTC (rev 64550)
@@ -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