summaryrefslogtreecommitdiff
path: root/ghc.mk
diff options
context:
space:
mode:
authorHerbert Valerio Riedel <hvr@gnu.org>2017-04-24 22:22:32 +0200
committerHerbert Valerio Riedel <hvr@gnu.org>2017-04-24 22:24:38 +0200
commitcd10a23282499b474cedeb4f63f92e70ed9718f3 (patch)
tree7dcf758fc513e281d79437782d7201f7a748f218 /ghc.mk
parent1c27e5b3932cb0b7c3fe2fa3b43a0eae9253b833 (diff)
downloadhaskell-cd10a23282499b474cedeb4f63f92e70ed9718f3.tar.gz
Guard yet another /bin/sh `for in` loop against empty vars
This is a follow-up to df6794035f1e4397d89896f329525e5368b7d1cc which missed `INSTALL_BINS`
Diffstat (limited to 'ghc.mk')
-rw-r--r--ghc.mk2
1 files changed, 2 insertions, 0 deletions
diff --git a/ghc.mk b/ghc.mk
index d36e681be3..ce71a55233 100644
--- 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)" ; \