From 8fd5ae0f3d101d7671b18fff5652f02e6e540b39 Mon Sep 17 00:00:00 2001 From: Ian Lynagh Date: Thu, 5 Nov 2009 15:57:27 +0000 Subject: GHC build system: Make *nix installation work in paths containing spaces --- ghc.mk | 8 ++++---- haddock.wrapper | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/ghc.mk b/ghc.mk index a54d7735..5e6b7633 100644 --- a/ghc.mk +++ b/ghc.mk @@ -24,15 +24,15 @@ utils/haddock_dist_MODULES += Paths_haddock install: install_utils/haddock_html .PHONY: install_utils/haddock_html install_utils/haddock_html: - $(INSTALL_DIR) $(DESTDIR)$(docdir)/html - "$(CP)" -R utils/haddock/html $(DESTDIR)$(docdir)/html + $(INSTALL_DIR) "$(DESTDIR)$(docdir)/html" + "$(CP)" -R utils/haddock/html "$(DESTDIR)$(docdir)/html" install: install_utils/haddock_data .PHONY: install_utils/haddock_data install_utils/haddock_data: - $(INSTALL_DIR) $(DESTDIR)$(ghclibdir)/html + $(INSTALL_DIR) "$(DESTDIR)$(ghclibdir)/html" for i in utils/haddock/html/*; do \ - $(INSTALL_DATA) $(INSTALL_OPTS) $$i $(DESTDIR)$(ghclibdir)/html; \ + $(INSTALL_DATA) $(INSTALL_OPTS) $$i "$(DESTDIR)$(ghclibdir)/html"; \ done BINDIST_EXTRAS += $(addprefix utils/haddock/,html/*) diff --git a/haddock.wrapper b/haddock.wrapper index 0895fbac..a0fbda30 100644 --- a/haddock.wrapper +++ b/haddock.wrapper @@ -1,3 +1,3 @@ #!/bin/sh -exec $executablename -B$topdir -l$topdir ${1+"$@"} +exec "$executablename" -B"$topdir" -l"$topdir" ${1+"$@"} -- cgit v1.2.3