Bläddra i källkod

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.


git-svn-id: https://svn.osgeo.org/grass/grass/trunk@72235 15284696-431f-4ddb-bdfa-cd5b030d7da7
Vaclav Petras 7 år sedan
förälder
incheckning
9108843e10
4 ändrade filer med 7 tillägg och 4 borttagningar
  1. 4 1
      include/Make/HtmlRules.make
  2. 1 1
      include/Make/Module.make
  3. 1 1
      include/Make/Script.make
  4. 1 1
      include/Make/ShScript.make

+ 4 - 1
include/Make/HtmlRules.make

@@ -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)/%.png: %.png | $(HTMLDIR)
 
 $(HTMLDIR)/%.jpg: %.jpg | $(HTMLDIR)
 	$(INSTALL_DATA) $< $@
+
+$(HTMLDIR)/%.gif: %.gif | $(HTMLDIR)
+	$(INSTALL_DATA) $< $@

+ 1 - 1
include/Make/Module.make

@@ -26,7 +26,7 @@ $(ETC)/$(PGM):
 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

+ 1 - 1
include/Make/Script.make

@@ -34,7 +34,7 @@ scriptstrings: $(STRINGDIR)/$(PGM)_to_translate.c
 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

+ 1 - 1
include/Make/ShScript.make

@@ -33,7 +33,7 @@ scriptstrings: $(STRINGDIR)/$(PGM)_to_translate.c
 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