Guard yet another /bin/sh `for in` loop against empty vars
authorHerbert Valerio Riedel <hvr@gnu.org>
Mon, 24 Apr 2017 20:22:32 +0000 (22:22 +0200)
committerHerbert Valerio Riedel <hvr@gnu.org>
Mon, 24 Apr 2017 20:24:38 +0000 (22:24 +0200)
This is a follow-up to df6794035f1e4397d89896f329525e5368b7d1cc
which missed `INSTALL_BINS`

ghc.mk

diff --git a/ghc.mk b/ghc.mk
index d36e681..ce71a55 100644 (file)
--- a/ghc.mk
+++ b/ghc.mk
@@ -907,9 +907,11 @@ endef
 
 install_bins: $(INSTALL_BINS) $(INSTALL_SCRIPTS)
        $(INSTALL_DIR) "$(DESTDIR)$(bindir)"
+ifneq "$(INSTALL_BINS)" ""
        for i in $(INSTALL_BINS); do \
                $(INSTALL_PROGRAM) $(INSTALL_BIN_OPTS) $$i "$(DESTDIR)$(bindir)" ;  \
        done
+endif
 ifneq "$(INSTALL_SCRIPTS)" ""
        for i in $(INSTALL_SCRIPTS); do \
                $(INSTALL_SCRIPT) $(INSTALL_OPTS) $$i "$(DESTDIR)$(bindir)" ;  \