瀏覽代碼

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 年之前
父節點
當前提交
c9f1173fbb
共有 1 個文件被更改,包括 3 次插入1 次删除
  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)