diff options
author | Herbert Valerio Riedel <hvr@gnu.org> | 2017-04-24 22:22:32 +0200 |
---|---|---|
committer | Herbert Valerio Riedel <hvr@gnu.org> | 2017-04-24 22:24:38 +0200 |
commit | cd10a23282499b474cedeb4f63f92e70ed9718f3 (patch) | |
tree | 7dcf758fc513e281d79437782d7201f7a748f218 /ghc.mk | |
parent | 1c27e5b3932cb0b7c3fe2fa3b43a0eae9253b833 (diff) | |
download | haskell-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.mk | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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)" ; \ |