From: Ian Lynagh Date: Tue, 13 Oct 2009 09:39:17 +0000 (+0000) Subject: Fix install when INSTALL_LIBEXECS = "" X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=214218d8e33394a6ae398e8f28688d389db27b2f;p=ghc-hetmet.git 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. --- 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)