From 214218d8e33394a6ae398e8f28688d389db27b2f Mon Sep 17 00:00:00 2001 From: Ian Lynagh Date: Tue, 13 Oct 2009 09:39:17 +0000 Subject: [PATCH] Fix install when INSTALL_LIBEXECS = "" 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 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ghc.mk b/ghc.mk index 1ae3077..827830f 100644 --- 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) -- 1.7.10.4