Pārlūkot izejas kodu

Guard against empty $(IMGSRC) (work-around suspected make bug)

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@40221 15284696-431f-4ddb-bdfa-cd5b030d7da7
Glynn Clements 15 gadi atpakaļ
vecāks
revīzija
c9f1173fbb
1 mainītis faili ar 3 papildinājumiem un 1 dzēšanām
  1. 3 1
      include/Make/Html.make

+ 3 - 1
include/Make/Html.make

@@ -14,7 +14,9 @@ IMGSRC := $(wildcard *.png) $(wildcard *.jpg)
 $(HTMLDIR)/%.html: %.html %.tmp.html $(HTMLSRC) | $(HTMLDIR)
 	$(PYTHON) $(GISBASE)/tools/mkhtml.py $* > $@
 ifneq ($(strip $(IMGSRC)),)
-	$(MAKE) $(patsubst %,$(HTMLDIR)/%,$(IMGSRC))
+	if test -n "$(IMGSRC)" ; then \
+		$(MAKE) $(patsubst %,$(HTMLDIR)/%,$(IMGSRC)) ; \
+	fi
 endif
 
 $(HTMLDIR)/%.png: %.png | $(HTMLDIR)