summaryrefslogtreecommitdiff
path: root/utils/runghc/ghc.mk
diff options
context:
space:
mode:
authorIan Lynagh <igloo@earth.li>2009-05-30 22:00:21 +0000
committerIan Lynagh <igloo@earth.li>2009-05-30 22:00:21 +0000
commit0ef6ba7b28187a4bf5309f9702eeaf53a281204b (patch)
tree653c84d5647c6efa71836dbd7a7231b2ae725988 /utils/runghc/ghc.mk
parentd5629b335a3254612887be8091b76dbdf2b582f8 (diff)
downloadhaskell-0ef6ba7b28187a4bf5309f9702eeaf53a281204b.tar.gz
Quote commands that we run, so they work if there are space in their paths
I've also added some missing $s to some makefiles. These aren't technically necessary, but it's nice to be consistent.
Diffstat (limited to 'utils/runghc/ghc.mk')
-rw-r--r--utils/runghc/ghc.mk8
1 files changed, 4 insertions, 4 deletions
diff --git a/utils/runghc/ghc.mk b/utils/runghc/ghc.mk
index 09d8044fee..7d6769d1a9 100644
--- a/utils/runghc/ghc.mk
+++ b/utils/runghc/ghc.mk
@@ -20,8 +20,8 @@ ifneq "$(BINDIST)" "YES"
# hack: the build system has trouble with Main modules not called Main.hs
utils/runghc/dist/build/Main.hs : utils/runghc/runghc.hs $(MKDIRHIER)
- $(MKDIRHIER) $(dir $@)
- $(CP) $< $@
+ "$(MKDIRHIER)" $(dir $@)
+ "$(CP)" $< $@
$(eval $(call build-prog,utils/runghc,dist,1))
@@ -32,10 +32,10 @@ install: install_runhaskell
.PHONY: install_runhaskell
ifeq "$(Windows)" "YES"
install_runhaskell: install_bins
- $(CP) $(DESTDIR)$(bindir)/runghc$(exeext) $(DESTDIR)$(bindir)/runhaskell$(exeext)
+ "$(CP)" $(DESTDIR)$(bindir)/runghc$(exeext) $(DESTDIR)$(bindir)/runhaskell$(exeext)
else
install_runhaskell:
- $(RM) $(DESTDIR)$(bindir)/runhaskell
+ "$(RM)" $(RM_OPTS) $(DESTDIR)$(bindir)/runhaskell
$(LN_S) runghc $(DESTDIR)$(bindir)/runhaskell
endif