Fix install when INSTALL_LIBEXECS = ""
authorIan Lynagh <igloo@earth.li>
Tue, 13 Oct 2009 09:39:17 +0000 (09:39 +0000)
committerIan Lynagh <igloo@earth.li>
Tue, 13 Oct 2009 09:39:17 +0000 (09:39 +0000)
This is the case on Windows (as we have no shell wrappers), and mingw's
shell doesn't like an empty list of things in a "for" command.

ghc.mk

diff --git a/ghc.mk b/ghc.mk
index 1ae3077..827830f 100644 (file)
--- a/ghc.mk
+++ b/ghc.mk
@@ -764,10 +764,14 @@ install_libexec_scripts: $(INSTALL_LIBEXEC_SCRIPTS)
        done
 
 install_libexecs:  $(INSTALL_LIBEXECS)
+ifeq "$(INSTALL_LIBEXECS)" ""
+       @:
+else
        $(INSTALL_DIR) $(DESTDIR)$(ghclibexecdir)
        for i in $(INSTALL_LIBEXECS); do \
                $(INSTALL_PROGRAM) $(INSTALL_BIN_OPTS) $$i $(DESTDIR)$(ghclibexecdir); \
        done
+endif
 
 install_topdir_scripts: $(INSTALL_TOPDIR_SCRIPTS)
        $(INSTALL_DIR) $(DESTDIR)$(topdir)