projects
/
ghc-hetmet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Make installation on *nix work for paths with spaces in their name
[ghc-hetmet.git]
/
utils
/
runghc
/
ghc.mk
diff --git
a/utils/runghc/ghc.mk
b/utils/runghc/ghc.mk
index
09d8044
..
a70e38a
100644
(file)
--- a/
utils/runghc/ghc.mk
+++ b/
utils/runghc/ghc.mk
@@
-17,25
+17,22
@@
utils/runghc_dist_SHELL_WRAPPER = YES
utils/runghc_dist_INSTALL_SHELL_WRAPPER = YES
ifneq "$(BINDIST)" "YES"
utils/runghc_dist_INSTALL_SHELL_WRAPPER = YES
ifneq "$(BINDIST)" "YES"
-
# hack: the build system has trouble with Main modules not called Main.hs
# 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) $< $@
+utils/runghc/dist/build/Main.hs : utils/runghc/runghc.hs | $$(dir $$@)/.
+ "$(CP)" $< $@
+endif
$(eval $(call build-prog,utils/runghc,dist,1))
$(eval $(call build-prog,utils/runghc,dist,1))
-endif
-
install: install_runhaskell
.PHONY: install_runhaskell
ifeq "$(Windows)" "YES"
install_runhaskell: install_bins
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:
else
install_runhaskell:
- $(RM) $(DESTDIR)$(bindir)/runhaskell
- $(LN_S) runghc $(DESTDIR)$(bindir)/runhaskell
+ "$(RM)" $(RM_OPTS) "$(DESTDIR)$(bindir)/runhaskell"
+ $(LN_S) runghc "$(DESTDIR)$(bindir)/runhaskell"
endif
endif