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

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Feb 13 11:08:28 PST 2018


Author: wenzeslaus
Date: 2018-02-13 11:08:28 -0800 (Tue, 13 Feb 2018)
New Revision: 72235

Modified:
   grass/trunk/include/Make/HtmlRules.make
   grass/trunk/include/Make/Module.make
   grass/trunk/include/Make/Script.make
   grass/trunk/include/Make/ShScript.make
Log:
make: support GIFs in all Makefiles

Promised in wiki:Submitting/Docs.
The only module which has GIFs (static) is r.landscape.evol (in addons),
but GIFs are (still) useful for animations.


Modified: grass/trunk/include/Make/HtmlRules.make
===================================================================
--- grass/trunk/include/Make/HtmlRules.make	2018-02-13 16:32:22 UTC (rev 72234)
+++ grass/trunk/include/Make/HtmlRules.make	2018-02-13 19:08:28 UTC (rev 72235)
@@ -3,7 +3,7 @@
 
 htmldesc = $(call run_grass,$(1) --html-description < /dev/null | grep -v '</body>\|</html>' > $(2))
 
-IMGSRC := $(wildcard *.png) $(wildcard *.jpg)
+IMGSRC := $(wildcard *.png) $(wildcard *.jpg) $(wildcard *.gif)
 IMGDST := $(patsubst %,$(HTMLDIR)/%,$(IMGSRC))
 
 ifneq ($(strip $(IMGDST)),)
@@ -15,3 +15,6 @@
 
 $(HTMLDIR)/%.jpg: %.jpg | $(HTMLDIR)
 	$(INSTALL_DATA) $< $@
+
+$(HTMLDIR)/%.gif: %.gif | $(HTMLDIR)
+	$(INSTALL_DATA) $< $@

Modified: grass/trunk/include/Make/Module.make
===================================================================
--- grass/trunk/include/Make/Module.make	2018-02-13 16:32:22 UTC (rev 72234)
+++ grass/trunk/include/Make/Module.make	2018-02-13 19:08:28 UTC (rev 72235)
@@ -26,7 +26,7 @@
 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))
+	$(eval IMG := $(wildcard $(HTMLDIR)/*.png) $(wildcard $(HTMLDIR)/*.jpg) $(wildcard $(HTMLDIR)/*.gif))
 	if [ -n "$(IMG)" ] ; then \
 		$(INSTALL_DATA) $(IMG)  $(INST_DIR)/docs/html/ ; \
 	fi

Modified: grass/trunk/include/Make/Script.make
===================================================================
--- grass/trunk/include/Make/Script.make	2018-02-13 16:32:22 UTC (rev 72234)
+++ grass/trunk/include/Make/Script.make	2018-02-13 19:08:28 UTC (rev 72235)
@@ -34,7 +34,7 @@
 install:
 	$(INSTALL) $(SCRIPT) $(INST_DIR)/scripts/
 	$(INSTALL_DATA) $(HTMLDIR)/$(PGM).html $(INST_DIR)/docs/html/
-	$(eval IMG := $(wildcard $(HTMLDIR)/*.png) $(wildcard $(HTMLDIR)/*.jpg))
+	$(eval IMG := $(wildcard $(HTMLDIR)/*.png) $(wildcard $(HTMLDIR)/*.jpg) $(wildcard $(HTMLDIR)/*.gif))
 	if [ -n "$(IMG)" ] ; then \
 		$(INSTALL_DATA) $(IMG)  $(INST_DIR)/docs/html/ ; \
 	fi

Modified: grass/trunk/include/Make/ShScript.make
===================================================================
--- grass/trunk/include/Make/ShScript.make	2018-02-13 16:32:22 UTC (rev 72234)
+++ grass/trunk/include/Make/ShScript.make	2018-02-13 19:08:28 UTC (rev 72235)
@@ -33,7 +33,7 @@
 install:
 	$(INSTALL) $(SCRIPT) $(INST_DIR)/scripts/
 	$(INSTALL_DATA) $(HTMLDIR)/$(PGM).html $(INST_DIR)/docs/html/
-	$(eval IMG := $(wildcard $(HTMLDIR)/*.png) $(wildcard $(HTMLDIR)/*.jpg))
+	$(eval IMG := $(wildcard $(HTMLDIR)/*.png) $(wildcard $(HTMLDIR)/*.jpg) $(wildcard $(HTMLDIR)/*.gif))
 	if [ -n "$(IMG)" ] ; then \
 		$(INSTALL_DATA) $(IMG)  $(INST_DIR)/docs/html/ ; \
 	fi



More information about the grass-commit mailing list